Delete a site permanently
delete_sitePermanently delete a site — its subdomain row, all version snapshots, all content_items, all submissions, the alias history, attached custom domains (removed from Vercel), any active billing for the site (cancelled), and any media in the storage bucket. IRREVERSIBLE. Use this when the user explicitly asks to scrap a site (e.g. 'delete my-portfolio-3947, I don't want it' or 'I created the wrong template, throw it away'). Requires confirm: true to be deliberate. Do NOT call this on user-said-something-vague — ask 'are you sure you want to delete {subdomain} permanently?' first and only call after explicit yes. There is no undo. If the billing cancellation fails, the entire delete is aborted so the user is never charged for a deleted site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | Required boolean — pass `true` to confirm. Forces you to be deliberate before destroying user data. | |
| site_id | Yes | ||
| confirm_subdomain | No | Recommended: the subdomain of the site being deleted, exactly as the owner confirmed it in the chat (e.g. 'my-portfolio-3947'). When given, the delete is refused unless it matches the site_id's subdomain — a guard against deleting the wrong site. |