Delete a team
DELETE
/teams/{id}Deletes a team. No mail is deleted, so the body has to repeat the team’s name.
Needs the permissionteams:delete
Its mailboxes may open up
A mailbox shared only with this team becomes visible to everyone in the organisation. One also shared with other teams or people keeps those. Signatures made only for the team are deleted.
Path parameters
idstringrequired- The team.
Body
confirmNamestringrequired- The team’s name.
Returns
Nothing: a successful delete is 204 No Content.
Errors
400confirm_nameconfirmNameis missing or isn’t the team’s name.401invalid_key- The key is wrong, expired or revoked. With no Authorization header at all, the code is
missing_credentials. 403missing_scope- The key doesn’t have
teams:delete. TheX-Required-Scopeheader names what’s missing. 403not_admin- The key’s owner isn’t an administrator.
404not_found- There’s no such team.
429rate_limited- More than 120 requests a minute from this key. Wait for
Retry-Afterseconds.