Remove a test account
Removes a registered simulated account. The account stops running on the scheduler’s next sweep. Orders it already produced are untouched and keep the retention every other order has; what is removed is the registration that made the platform simulate it. Callable by a client credential holding the accounts:admin scope, which may remove any organization’s account, and by an organization admin of a configured internal organization, which may remove only its own organization’s accounts.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Simulated account id
Response
Test account removed. Idempotent: a retry reports the moment of the first deletion.
The body every successful delete returns.
Deletes are idempotent, so a caller that retries one it is unsure landed
gets the same 200 as the caller that deleted it. That leaves the caller
unable to tell the two apart from the status alone, which is what
deleted_at is for: it is the moment the resource was first deleted and
does not move on a repeat call.
Always true. A caller checking one field to confirm the outcome does not have to special-case which endpoint it called.
When the resource was first deleted, not when this call was made.
The resource a delete acted on.
Named rather than free text so a caller can branch on it, and so the same vocabulary is available when these deletes start emitting events.
trading_account, test_trading_account, broker_credential, oauth_client, organization, user, organization_control, account_control, account_risk_control, account_time_control, symbol_control, symbol_risk_control, symbol_time_control Absent for resources keyed by a natural composite key rather than a single identifier, which today is every control in the controls service. The path already identifies those, so nothing is lost by omitting it.