DELETE/orgunits/{orgUnitId}

Deletes a team.

Caution

  • Once a team is deleted, all its message rooms, notes, events, and folders are deleted as well. Note that tasks are not deleted; they are saved as my tasks.
  • If a team or its child team has members, it cannot be deleted.
  • This API operation must be called in a single thread.

Authorization

oauth2

OAuth 2.0 authentication.
For more information, see Authentication and Authorization.

Scope

directory
orgunit

HTTP Request

DELETEhttps://www.worksapis.com/v1.0/orgunits/{orgUnitId}

Path Parameters

ParameterTypeDescription
orgUnitId string 

Team ID
- Resource ID
- External Key in "externalKey:{externalKey}" format


required
example : orgunitf-f27f-4af8-27e1-03817a911417 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 204

No Content

HTTP 404

Not Found