Deletes an account group. The group must be empty: a group that still has accounts (GROUP_HAS_ACCOUNTS) or sub-groups (GROUP_HAS_SUBGROUPS) is rejected with 400. Move or remove its accounts and move or delete its sub-groups first. Accounts are never reassigned automatically.
Deletes an account group. A group can only be deleted once it is empty: remove, move or delete its accounts first (see Remove Account from Group) and move or delete its sub-groups. Accounts are never reassigned automatically.
Path Parameters
account_group_idstringrequired
Account group UUID.
Response
No Content — the group was deleted.
Bad Request. The code field tells the reason:
GROUP_HAS_ACCOUNTS — the group still has accounts. Remove them from the group first.
GROUP_HAS_SUBGROUPS — the group still has sub-groups. Move them to another parent (or detach them with Update Account Group) or delete them first.
codestring
Machine-readable error code.
messagesstring[]
Human-readable details.
Not Found — no account group with that account_group_id in this organization.