Reset a website (delete all data)
umami_reset_websiteReset a website's analytics by permanently deleting all pageviews, sessions, and events while preserving the site registration and tracking ID. Data collection restarts fresh after confirmation.
Instructions
Permanently delete all collected data for a website: every pageview, session, and event. The website registration and tracking ID are kept, so the tracking script keeps working and data collection starts fresh.
This cannot be undone. Requires confirm=true.
Args:
website (string, required): Website ID, name, or domain.
confirm (boolean, required): Must be true. There is no undo.
Returns: { "ok": true, "website_id": string }
Examples:
"Wipe the test data we collected before going live" -> website="example.com", confirm=true
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Must be set to true to confirm this destructive, irreversible action. There is no undo. | |
| website | No | Website ID (UUID), name, or domain. Optional if UMAMI_DEFAULT_WEBSITE is set. Use umami_list_websites to discover values. |