reset_website
Remove all analytics data for a website in Umami Analytics. This action permanently deletes historical tracking information.
Instructions
Reset a website by removing all its analytics data (irreversible)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| websiteId | Yes | Website UUID to reset |
Implementation Reference
- src/tools/websites.ts:97-106 (handler)The "reset_website" tool is registered and handled directly within this block in src/tools/websites.ts. It performs a POST request to /api/websites/${websiteId}/reset.
server.tool( "reset_website", "Reset a website by removing all its analytics data (irreversible)", { websiteId: z.string().describe("Website UUID to reset"), }, async ({ websiteId }) => { await client.call("POST", `/api/websites/${websiteId}/reset`); return { content: [{ type: "text", text: `Website ${websiteId} data has been reset.` }] }; }