# Remove Database

Remove Database from Application

# HTTP Request:

POST https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/remove-database

# Parameter:

Parameter Required Type Description
database_id Yes Numeric ID of the specific database to be removed from the application.

# Curl Request Example:

curl --request POST \
  --url "https://api.serveravatar.com/organizations/{organization}/servers/{server}/applications/{application}/remove-database" \
  --header 'content-type: application/json' \
  --header 'Authorization: <YOUR API TOKEN>' \
  --data '{
    "database_id": 12
  }'

# Response Examples:

# Database Removed Successfully

  • 200 (Ok)
{
  "message": "Database removed successfully."
}

# Application Not Found

  • 404 (Not Found)
{
  "message": "The application is not associated with the specified server."
}

# Database Not Found

  • 404 (Not Found)
{
  "message": "The selected database is not found."
}

# No Database Added to Application

  • 400 (Bad Request)
{
  "message": "No database is currently added to the selected application."
}

# Database Not Added to Application

  • 422 (Unprocessable Entity)
{
  "message": "The selected database is not added to the application."
}

# Server Error

  • 500 (Internal Server Error)
{
  "message": "Something went wrong!"
}
Last Updated: 1/8/2025, 9:37:21 AM