Delete archived team REST API
DELETE
/api/admin/teams/{id}
const url = 'https://app.hitkeep.com/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'DELETE', headers: {cookie: 'hk_token=<hk_token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.hitkeep.com/api/admin/teams/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --cookie hk_token=<hk_token>Permanently deletes an archived non-default team and removes its per-tenant analytics database directory.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”Delete archived team response
Media typeapplication/json
object
name
string
status
string
team_id
string format: uuid
Examplegenerated
{ "name": "example", "status": "example", "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Archive the team first, and ensure it has no sites
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}Team not found
Media typeapplication/json
object
message
string
Examplegenerated
{ "message": "example"}