Skip to main content

Delete Website

Permanently delete a website and all its associated analytics data.
This action is irreversible. All analytics data, events, and reports for this website will be permanently deleted.

Endpoint

DELETE /api/websites/{websiteId}

Headers

Authorization
string
required
Bearer token for authentication

Path Parameters

websiteId
string
required
Website UUID to delete

Response

Returns a 200 OK status with an empty response body on successful deletion.

Example Request

curl -X DELETE https://your-umami-instance.com/api/websites/550e8400-e29b-41d4-a716-446655440000 \
  -H "Authorization: Bearer YOUR_TOKEN"

Error Responses

401
error
Unauthorized - You don’t have permission to delete this website
404
error
Not Found - Website does not exist

Permissions

To delete a website, you must be:
  • The website owner (for personal websites)
  • A team manager or owner (for team websites)
  • A system administrator
Consider using the Reset Website endpoint if you want to clear analytics data while keeping the website configuration.

Build docs developers (and LLMs) love