For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete website database

Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users. The operation is idempotent: deleting a database that does not exist succeeds without error.

Delete website database

delete

Permanently deletes a MySQL database and all its data from an Agency Plan website, including its users.

The operation is idempotent: deleting a database that does not exist succeeds without error.

Authorizations
AuthorizationstringRequired

API Token authentication

Path parameters
website_uidstringRequired

Agency Plan website UID

Example: zpwlGlp19
database_namestringRequired

Full database name as returned by the list databases endpoint.

Example: my_database
Responses
200

Success empty response

application/json
messagestringOptionalExample: Request accepted
delete/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}
DELETE /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name} HTTP/1.1
Host: developers.hostinger.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "message": "Request accepted"
}

Last updated

Was this helpful?