# Destroy

Delete Team

Method: DELETE

# Endpoint:

https://api.serveravatar.com/teams/{id}

# Request Example:

curl --request DELETE \
  --url "https://api.serveravatar.com/teams/1103" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

# Response:

# Team Delete

  • 200 (Ok)
{
    "message": "Team successfully deleted!"
}

# One Team Required In Account

  • 500 (Internal Server Error)
{
    "message":"You can not team delete. One team required in specific account!"
}

# Team Not Found

  • 404 (Not Found)
{
    "message":"Team not found!"
}

# Server Error

  • 500 (Internal Server Error)
{
    "message":"Something went really wrong!"
}