teams

Delete team

Cascade soft-delete a workspace and its rows (members, keys, sessions, OAuth clients, brands, certificates); its share goes back to the pool. Owner only. DESTRUCTIVE, no restore: the data is erased 30 days later. Soft blockers (active keys, other members) answer 409 delete_blocked until acknowledged. Deleting the owner's last workspace leaves the account untouched and teamless. The caller's session is revoked by the cascade: re-mint for the surviving team first.

Contract:

  • MCP tool delete_team, registry package mcp.id/teams, mount id.identity.
  • Operation delete, response envelope delete_cascade.
  • Flags: dangerous: the MCP layer gates it behind a preview/commit token, and the effect cannot be undone through this API.
delete/api/teams/{sid}

Request

  • Base URL
    https://beta.getsales.io/id/v1
  • Auth
    HTTP bearer and API key in header Team-SID

Path parameters

sidstring required

The ts_tm_* sid of the row to delete.

Query parameters

acknowledge[]string[]

Resolution codes of the soft blockers the user confirmed (error.blockers[].resolution of a delete_blocked answer).

next_default_team_sidstring

Which of the caller's other live memberships becomes their working team afterwards; default the oldest. 422 when it is not an active membership of theirs.

Response

delete_cascade success envelope.

successtrue required
operation'delete' required
itemobject required
already_deletedboolean required
soft_deletedboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.