Delete archived team
DELETE /api/admin/teams/{id}
DELETE
/api/admin/teams/{id}
Permanently deletes a non-default team and removes its per-tenant analytics database directory. With ?force=true, automatically deletes all sites, archives the team, and then purges it in a single operation. Without force, the team must already be archived with no sites.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Query Parameters
Section titled “Query Parameters ” force
boolean
When true, deletes all team sites and archives the team before purging. Members are moved to the default team.
Responses
Section titled “ Responses ”Delete archived team response
object
name
string
status
string
team_id
string format: uuid
Archive the team first, and ensure it has no sites
object
message
string
Team not found
object
message
string