# Delete Hosted Site (site.withzero.ai)

> Delete Hosted Site (site.withzero.ai) is a paid API for AI agents from site.withzero.ai, paid per call via MPP, metered — billed by usage, status unknown (last checked 2026-10-01).

Permanently deletes a hosted site by its slug and clears associated CUSTOM_DOMAINS KV mappings.

## Facts

- Endpoint: DELETE https://site.withzero.ai/sites/:slug?utm_source=zero.xyz
- Price: metered — billed by usage
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Provider: site.withzero.ai
- Website: https://site.withzero.ai
- Canonical page: https://www.zero.xyz/c/site-withzero-ai-delete-hosted-site-site-withzero-ai-09498ad8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aO_cRM1yA9UtPZS5noqYb

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 site-withzero-ai-delete-hosted-site-site-withzero-ai-09498ad8 -d '<json body>'
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Response schema (JSON Schema)

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

## More

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