Skip to main content
DELETE
/
v1
/
teams
Delete Team
const options = {
  method: 'DELETE',
  headers: {'Content-Type': 'application/json'},
  body: JSON.stringify({teamId: '9c1b7b9a-8c2f-4a9d-9f63-2a1b5c7e8d90'})
};

fetch('https://api.trackpilots.com/v1/teams', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "success": true,
  "message": "Team deleted successfully"
}

Body

application/json
teamId
string<uuid>
required

Unique ID of the team to delete

Response

200 - application/json

Team deleted successfully

success
boolean
Example:

true

message
string
Example:

"Team deleted successfully"