{"uid":"cap_zR-syzFMgSH0aCUGteSHh","slug":"cdn-withzero-xyz-delete-hosted-site-3d46e191","name":"Delete Hosted Site","description":"Delete a site you host — its files, its public URL, and any share link.","url":"https://cdn.withzero.xyz/api/v1/sites/{slug}?utm_source=zero.xyz","method":"DELETE","headers":{},"bodySchema":{"type":"object"},"responseSchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["deleted"],"properties":{"deleted":{"type":"boolean","const":true}},"additionalProperties":false},"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.90","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","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_x5FaT8M2i6dSksnJ2tPgL","protocol":"mpp","methodType":"crypto","chain":"tempo","mode":"charge","costAmount":"0","costPer":"request","priority":0,"asset":"0x20C000000000000000000000b9537d11c60E8b50","unit":"request","depositMicros":null,"planRef":"cdn.sites.delete:1"}],"brandName":"cdn.withzero.xyz","brandSlug":"cdn-withzero-xyz-mpp","brandBaseUrl":"https://cdn.withzero.xyz","brandDocsUrl":null,"whatItDoes":"Permanently deletes a hosted static site by slug, removing its files, public CDN URL, and any associated share link.","exampleAgentPrompt":"Delete my hosted site with the slug 'my-portfolio' — remove all its files, its public URL, and any share link.","exampleUseCases":[{"title":"Teardown a temporary landing page","prompt":"I finished my campaign — please delete the site with slug 'summer-promo-2024' from my CDN hosting, including any share links."},{"title":"Remove an outdated project site","prompt":"Take down my old project site with slug 'hackathon-demo' — I want all its files and its public URL gone."},{"title":"Clean up a test deployment","prompt":"Delete the test site I deployed under slug 'test-deploy-v2' and make sure its share link is removed too."}],"resultDescription":"Returns a JSON object with a single field `deleted: true` confirming the site, its files, its public CDN URL, and any share link have been permanently removed.","failureModes":["Site slug not found — returns an error if the slug does not exist or was already deleted","Unauthorized — caller does not own the site with the given slug","Invalid slug format — malformed or empty slug parameter"],"whenToPreferThis":"Use this endpoint when you need to permanently remove a previously hosted static site and free up its public URL and share link. Choose this over privacy/visibility changes (rotating or revoking share links) when full deletion is the goal.","instructions":"## Workflow\n- No site yet? Start at POST /api/v1/uploads (kind:\"site\") — its slug is the {slug} here, from the same wallet.\n- Want to hide it rather than delete it? PATCH /api/v1/sites/{slug} {visibility:\"link\"} keeps it behind a private share link.\n\n## Contract\n- Deletes the files, the public URL and any share link. Not reversible — re-upload to restore.\n- Only the uploading wallet's own sites resolve; any other slug → 404.\n- Nested slugs: URL-encode \"/\" as %2F (my%2Fsite).","reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":21,"lastUsedAt":"2026-10-03T00:41:09.961Z","lastSuccessfullyRanAt":"2026-10-03T00:41:09.961Z","lastHealthCheckAt":"2026-10-02T16:14:09.022Z","isFirstParty":true,"canonicalSlug":"cdn-withzero-xyz-delete-hosted-site-3d46e191"}