# Delete Hosted Site by Slug

> Delete Hosted Site by Slug is a paid API for AI agents from agents.withzero.xyz, paid per call via MPP, price unknown, status unknown (last checked 2026-10-12).

Permanently deletes a hosted site, removing its files, public URL, and any share link.

## Facts

- Endpoint: DELETE https://agents.withzero.xyz/api/v1/cdn/sites/{slug}?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Provider: agents.withzero.xyz
- Website: https://agents.withzero.xyz
- Canonical page: https://www.zero.xyz/c/agents-withzero-xyz-delete-hosted-site-by-slug-8b7cf71e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cnD1q2FQcEgUuFdZtADPi

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 agents-withzero-xyz-delete-hosted-site-by-slug-8b7cf71e -d '<json body>'
```

Example prompt: Please delete the hosted site with the slug 'my-project-landing' — remove its files, take down its public URL, and kill any share link.

## When to prefer this

Use this endpoint when you need to fully and permanently remove a hosted site managed through WithZero's CDN hosting — including all its files, its public URL, and any share link — in a single atomic operation. Prefer this over visibility-change endpoints when you want complete teardown, not just access restriction.

## Known failure modes

- Site slug not found — 404 if the specified slug does not exist or has already been deleted
- Unauthorized — 401 if the caller is not authenticated
- Forbidden — 403 if the caller does not own the site or lacks permission to delete it
- Invalid slug format — 400 if the slug path parameter is malformed

## 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 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/agents-withzero-xyz-delete-hosted-site-by-slug-8b7cf71e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.withzero.xyz](https://www.zero.xyz/host/agents.withzero.xyz/llms.txt)
