Removes a team.
Permission required: delete-team
The deletion completes even if the team's main room no longer exists, for example after an interrupted deletion. In that case, the main room is skipped, the team is removed, and the team name becomes available again. You can retry an interrupted deletion with this endpoint.
Changelog
| Version | Description |
|---|---|
| 8.9.0 | Succeeds when the main room is missing. |
| 3.13.0 | Added |
The authToken of the authenticated user.
The userId of the authenticated user.
{
"teamId": "mLGZGywfmLGZGywf",
"roomsToRemove": [
"8dugqGhuRvCBLdZft"
]
}Enter the team name. This parameter is required if teamId is not provided.
Enter the team ID. This parameter is required if teamName is not provided.
The room IDs to delete along with the team.
OK
{
"success": true
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}