DELETE /api/v2/accounts/{customerId}
Hard-deletes a child customer account. Only CHILD customers can be deleted, and the caller must be an ADMIN on the parent (or a Scope3 SuperAdmin). The request is refused if the child still has linked resources.
Request
curl
Parameters
| Field | In | Type | Required | Notes |
|---|---|---|---|---|
customerId | path | string | Yes | Customer ID of the child to delete |
Response
204 No Content — the child account was deleted. The response body is empty.
Errors
401 UNAUTHORIZED— missing or invalid bearer token.403 FORBIDDEN— caller is not anADMINon the parent.404 NOT_FOUND— the customer does not exist or is not a child of the caller’s organization.409 CONFLICT— the child still has linked resources and cannot be deleted.
Related
Account tasks
All account operations
Create child account
Add a child customer
List customer accounts
Accounts you can access