---
# @generated by sylphx-gen 0.1.0 from contracts@6a1bce71c4562366bcd933dde7dec01abbf14a9dde109a6ef2c4ea7c79f1fb3a. Do not edit.
title: "Delete in Namespaces"
description: "`realtime.namespaces.delete` (DELETE /v1/namespaces/{name}): Deletes a namespace, its channels' history and presence, and closes the subscriptions on them."
type: reference
product: realtime
summary: "Deletes a namespace, its channels' history and presence, and closes the subscriptions on them."
updated: 2026-09-28
nav: false
---

Deletes a namespace, its channels' history and presence, and closes the subscriptions on them.

**Not available yet.** Sylphx Realtime is declared in the registry but no backend serves it: every call answers `501` with the problem code `UNIMPLEMENTED`.

- **Path** `DELETE https://api.realtime.sylphx.com/v1/namespaces/name`
- **Scope** `realtime:write`
- **Effect** `destructive` — a successful call removes data; the CLI asks before it runs.
- **Collection** [namespaces](/docs/api/namespaces)
- **Host** `https://api.realtime.sylphx.com`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | The namespace name. Required. |

## Response

The call answers with an empty object.

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`RESOURCE_NOT_FOUND`](/docs/api/errors/RESOURCE_NOT_FOUND) — The named Resource does not exist or is not visible.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl -X DELETE "https://api.realtime.sylphx.com/v1/namespaces/name" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.realtime.namespaces.delete({ name: 'name' })
```

**Rust**

```rust
let mut req = sylphx::realtime::DeleteNamespaceRequest::default();
req.name = "name".to_string();
let response = sx.realtime().namespaces().delete(req).await?;
```

**MCP**

```json
{ "method_id": "realtime.namespaces.delete", "args": {"name":"name"} }
```
