---
title: "Delete website database"
method: DELETE
path: "/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}"
tags: ["Agency Hosting: Databases"]
---

# Delete website database

`DELETE /api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}`

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.

## Path parameters

- `website_uid` string, required
- `database_name` string, required

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `500` — Error response

## Changes

- **2026-08-13** `5a5a54ce5eb4` — 1 info
  - api operation id `agency-hosting_deleteAgencyPlanWebsiteDatabaseV1` removed and replaced with `agency-hosting_deleteWebsiteDatabaseV1`
- **2026-07-22** `c216a415429b` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/agency-hosting/v1/websites/:website_uid/databases/:database_name/delete.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
