# Destroy

Use this method to delete a server. note that, once the server is disconnect from ServerAvatar, you can not re-connect it without the help of support.

# HTTP Request:

DELETE https://api.serveravatar.com/organizations/{organization}/servers/{server}

# Curl Request example:

curl --request DELETE \
  --url "https://api.serveravatar.com/organizations/{organization}/servers/{server}" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>'

NOTE

  • If you want to delete your server from the server provider, pass the { deleteFromProvider=1 } as a URL parameter.

# Response:

# Organization Not Found

  • 404 (Not found)
{
    "message": "Organization not found."
}

# Server Delete

  • 200 (Ok)
{
  "message": "Server has been disconnected successfully!"
}

# Forbidden

  • 403 (Forbidden)
{
    "message": "You can not perform this action!"
}

# Server Not Found

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

# Server Error

  • 500 (Internal Server Error)
{
    "message": "Something went really wrong!"
}
Last Updated: 12/5/2023, 9:13:45 AM