Delete archived team
DELETE
/api/admin/teams/{id}
const url = 'https://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://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 type application/json
object
name
string
status
string
team_id
string format: uuid
Example generated
{ "name": "example", "status": "example", "team_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Archive the team first, and ensure it has no sites
Media type application/json
object
message
string
Example generated
{ "message": "example"}Team not found
Media type application/json
object
message
string
Example generated
{ "message": "example"}