Delete events
Deletes custom events of one name, or the event of one goal, inside a range. Both ends of the range are required. Pageviews, errors and payments are never touched. Up to 1,000 events a call; when more is true, call again. Visit counters and the daily totals are rebuilt to match; the month’s usage is not refunded. Needs Goals and events: write. A key acts for the person who created it, with their current role in the workspace. This change needs an owner or admin.
Authorizations
An API key that starts with cs_sk_, created under API and MCP, API keys. A key covers every site of its workspace or a chosen list, and carries permissions per resource (Analytics, Revenue and payments, Goals and events, Funnels, Sites, Notes, Alerts) and extras (Visitor details, Raw events export, Team members, Workspace name, See API keys, Manage API keys). A change acts for the key's creator, with their current role. A request outside them answers 403 naming the missing permission.