DELETE /api/v1/sites/:site_id
Permanently deletes a site and all associated data including stats, goals, and configuration. This action cannot be undone.Authentication
Requires a valid API key with thesites:provision:* scope. You must be an owner of the site to delete it.
Path Parameters
The domain of the site to delete. Can be the current domain or the previous domain if it was changed.Examples:
example.com, blog.example.comResponse
Returns
true if the site was successfully deleted.Notes
- Only site owners can delete a site - editors, admins, and viewers cannot perform this action
- All site data will be permanently deleted, including:
- All pageview and event statistics
- Goals and funnels
- Custom properties configuration
- Shared links
- Email report subscriptions
- Guest memberships and invitations
- This operation cannot be undone - make sure to export any data you need before deleting
- Team-scoped API keys can only delete sites belonging to that specific team