{"uid":"cap_krNr4pn_v5-CMsBHoWMYC","slug":"host-withzero-ai-delete-hosted-site-host-withzero-ai-335276af","name":"Delete Hosted Site (host.withzero.ai)","description":"Delete a hosted site early. Owner-only. Also detaches any custom domains attached to this slug (CUSTOM_DOMAINS KV entries removed; Worker Custom Domain attachments at Cloudflare are NOT automatically torn down — call DELETE /sites/:slug/domains/:domain first if you want a clean removal).","url":"https://host.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_tIkcXpRNx7nKwqchZ5V2H","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"host-site-delete-sites-slug:1"}],"brandName":"host.withzero.ai","brandSlug":"host-withzero-ai-mpp","brandBaseUrl":"https://host.withzero.ai","brandDocsUrl":null,"whatItDoes":"Permanently deletes a hosted static site by slug before its TTL expires, removing KV metadata and detaching custom domains (Cloudflare Worker Custom Domain teardown requires a prior domain-delete call).","exampleAgentPrompt":"Go ahead and delete my hosted site with the slug 'my-portfolio-2024' on host.withzero.ai — I want it taken down early and all custom domain KV entries removed.","exampleUseCases":[{"title":"Early takedown of a campaign site","prompt":"Delete the hosted site with slug 'summer-promo' right now — the campaign is over and I don't want to wait for it to expire on its own."},{"title":"Cleanup after dev/test deployment","prompt":"I'm done testing — please delete the hosted site with slug 'test-staging-v3' on host.withzero.ai to clean up my account."},{"title":"Owner removing site before domain transfer","prompt":"I want to tear down my hosted site at slug 'old-blog' and make sure all its attached custom domain KV entries are gone before I move the domain elsewhere — please delete it now."}],"resultDescription":"Returns a JSON object confirming the site deletion. Custom domain CUSTOM_DOMAINS KV entries are removed as part of this call; however, Cloudflare Worker Custom Domain attachments are NOT automatically torn down and require a prior DELETE /sites/:slug/domains/:domain call for a fully clean removal.","failureModes":["403 Forbidden if the caller wallet does not match the slug owner","404 Not Found if the slug does not exist or has already expired","Partial state if custom domains were not detached via DELETE /sites/:slug/domains/:domain before calling this endpoint — Cloudflare Worker Custom Domain bindings remain active","500 Internal Server Error if KV or R2 operations fail mid-delete"],"whenToPreferThis":"Use this endpoint when you need to permanently remove a hosted static site before its TTL expires, or when cleaning up test/temporary deployments. It handles KV metadata cleanup automatically but requires you to manually call DELETE /sites/:slug/domains/:domain for each custom domain first if you want a clean Cloudflare-level teardown. Prefer this over simply letting the TTL expire when you need immediate removal or want to free up the slug.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T21:36:58.254Z","isFirstParty":true,"canonicalSlug":"host-withzero-ai-delete-hosted-site-host-withzero-ai-335276af"}