Skip to main content

Reset Website

Reset all analytics data for a website while keeping the website configuration intact.
This action permanently deletes all analytics data including pageviews, events, sessions, and reports. The website configuration (name, domain, share ID) will be preserved.

Endpoint

POST /api/websites/{websiteId}/reset

Headers

Authorization
string
required
Bearer token for authentication

Path Parameters

websiteId
string
required
Website UUID to reset

Response

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

Example Request

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

Error Responses

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

What Gets Reset

When you reset a website, the following data is permanently deleted:
  • All pageviews and events
  • All sessions and visitor data
  • All custom event data
  • All reports associated with the website
  • All analytics statistics

What Is Preserved

The following website configuration remains intact:
  • Website ID
  • Website name
  • Domain
  • Share ID
  • Team or user ownership
  • Creation date

Permissions

To reset a website, you must have update permissions:
  • Be the website owner (for personal websites)
  • Be a team manager or owner (for team websites)
  • Have system administrator privileges
Use this endpoint when you want to start fresh with analytics data but keep your website tracking configuration. If you want to completely remove the website, use the Delete Website endpoint instead.

Build docs developers (and LLMs) love