# Delete Hosted Site

> Delete Hosted Site is a paid API for AI agents from cdn.withzero.xyz, paid per call via MPP, metered — billed by usage, status healthy (last checked 2026-10-02, last successful call 2026-10-03).

Permanently deletes a hosted static site by slug, removing its files, public CDN URL, and any associated share link.

## Facts

- Endpoint: DELETE https://cdn.withzero.xyz/api/v1/sites/{slug}?utm_source=zero.xyz
- Price: metered — billed by usage
- Payment: MPP
- Status: healthy
- Last checked: 2026-10-02
- Last successful call: 2026-10-03
- Success rate: 90% of calls made through Zero
- Activations on Zero: 21
- Provider: cdn.withzero.xyz
- Website: https://cdn.withzero.xyz
- Canonical page: https://www.zero.xyz/c/cdn-withzero-xyz-delete-hosted-site-3d46e191
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zR-syzFMgSH0aCUGteSHh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cdn-withzero-xyz-delete-hosted-site-3d46e191 -d '<json body>'
```

Example prompt: Delete my hosted site with the slug 'my-portfolio' — remove all its files, its public URL, and any share link.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Delete a site you host — its files, its public URL, and any share link.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object"
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "deleted"
 ],
 "properties": {
  "deleted": {
   "type": "boolean",
   "const": true
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cdn-withzero-xyz-delete-hosted-site-3d46e191/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cdn.withzero.xyz](https://www.zero.xyz/host/cdn.withzero.xyz/llms.txt)
