{"uid":"cap_aO_cRM1yA9UtPZS5noqYb","slug":"site-withzero-ai-delete-hosted-site-site-withzero-ai-09498ad8","name":"Delete Hosted Site (site.withzero.ai)","description":"Delete a hosted site early. Owner-only. Also clears CUSTOM_DOMAINS mappings that point at this slug. Cloudflare Worker Custom Domain attachments at CF's side remain — detach domains explicitly via DELETE /sites/:slug/domains/:domain first if you want a clean teardown.","url":"https://site.withzero.ai/sites/:slug?utm_source=zero.xyz","method":"DELETE","headers":{},"bodySchema":null,"responseSchema":{"type":"object"},"example":null,"exampleRequest":null,"tags":[],"displayCostAmount":"0","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"proven_free","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"metered","summary":"metered — billed by usage","primary":{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"},"accepted":[{"kind":"metered","protocol":"mpp","network":"tempo","amountUsd":null,"per":"call","confidence":"unknown"}]},"paymentMethods":[{"uid":"pm_zisOM9HtSIicX7m1HbceR","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"make-website-delete-sites-slug:1"}],"brandName":"site.withzero.ai","brandSlug":"site-withzero-ai-mpp","brandBaseUrl":"https://site.withzero.ai","brandDocsUrl":null,"whatItDoes":"Permanently deletes a hosted site by its slug and clears associated CUSTOM_DOMAINS KV mappings.","exampleAgentPrompt":"Delete my hosted site with the slug 'my-landing-page' on withzero — I want to take it down early and remove any custom domain mappings tied to it.","exampleUseCases":[{"title":"Tear down expired campaign site","prompt":"I'm done with the marketing campaign — please delete the hosted site with slug 'summer-promo-2024' on withzero and clear out any domain mappings pointing to it."},{"title":"Clean up test site after review","prompt":"We finished reviewing the staging page, go ahead and delete the withzero hosted site at slug 'staging-v3-test' so it's gone from the platform."},{"title":"Remove site before reprovisioning domain","prompt":"I want to delete the site at slug 'portfolio-old' on withzero — I'm about to reuse that slug and need the old one gone first."}],"resultDescription":"A JSON object confirming the site has been deleted and its CUSTOM_DOMAINS KV mappings cleared. Note: any Cloudflare Worker Custom Domain attachments on CF's side must be removed separately via DELETE /sites/:slug/domains/:domain before calling this endpoint for a fully clean teardown.","failureModes":["Slug not found — site does not exist or was already deleted","Caller is not the owner — 403 forbidden","Cloudflare-side custom domain attachments remain if not pre-detached — partial teardown state","Network or worker error returns generic 500"],"whenToPreferThis":"Use this endpoint when you need to permanently remove a site hosted on site.withzero.ai before its natural expiry, and want associated CUSTOM_DOMAINS KV mappings automatically cleared. If you have custom domains attached at the Cloudflare level, call DELETE /sites/:slug/domains/:domain first to avoid orphaned CF attachments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T17:57:33.273Z","isFirstParty":true,"canonicalSlug":"site-withzero-ai-delete-hosted-site-site-withzero-ai-09498ad8"}