# social.colibri.beta.channel.delete

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.channel.delete)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.channel.delete/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.channel.delete/examples)

## Definitions

### `social.colibri.beta.channel.delete`

**Type**: `procedure`

Deletes a channel's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` (space-ref) | Yes | The channel to delete. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **Forbidden**: The requesting user lacks the channel.delete permission.
- **ChannelNotFound**: No channel matches the given space reference.
- **CredentialsUnavailable**: The AppView cannot act as the community because its stored credentials are missing or unusable.
- **PdsUnavailable**: The community's PDS is unreachable or the AppView has no administrative access to it.
- **UpstreamFailure**: The community's PDS failed while deleting the channel's space.

## Raw Schema

```json
{
  "id": "social.colibri.beta.channel.delete",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "channel"
          ],
          "properties": {
            "channel": {
              "type": "string",
              "format": "space-ref",
              "description": "The channel to delete."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request has no valid service auth."
        },
        {
          "name": "Forbidden",
          "description": "The requesting user lacks the channel.delete permission."
        },
        {
          "name": "ChannelNotFound",
          "description": "No channel matches the given space reference."
        },
        {
          "name": "CredentialsUnavailable",
          "description": "The AppView cannot act as the community because its stored credentials are missing or unusable."
        },
        {
          "name": "PdsUnavailable",
          "description": "The community's PDS is unreachable or the AppView has no administrative access to it."
        },
        {
          "name": "UpstreamFailure",
          "description": "The community's PDS failed while deleting the channel's space."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Deletes a channel's space. Messages members wrote in it stay in their own repos and become unreadable to everyone but their authors."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
