# lol.dids.manage.disconnectSpace

> Published by [ngerakines.me](https://lexicon.garden/identity/did:plc:cbkjy5n7bk3ax2wplmtjofq2)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.disconnectSpace)
- [Documentation](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.disconnectSpace/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:cbkjy5n7bk3ax2wplmtjofq2/lol.dids.manage.disconnectSpace/examples)

## Definitions

### `lol.dids.manage.disconnectSpace`

**Type**: `procedure`

Forget a space: release the domains registered to it, purge under the ordinary grace, discard the credential and the key, and stop renewing. Authority only.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `space` | `string` (at-uri) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `disconnected` | `boolean` | Yes |  |
| `releasedDomains` | `array` | Yes | The hostnames released by the disconnect. |

#### Errors

- **SpaceNotFound**: Bard is not connected to that space.
- **NotSpaceAuthority**: Only the space's authority may disconnect it.

## Raw Schema

```json
{
  "id": "lol.dids.manage.disconnectSpace",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "space"
          ],
          "properties": {
            "space": {
              "type": "string",
              "format": "at-uri"
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "SpaceNotFound",
          "description": "Bard is not connected to that space."
        },
        {
          "name": "NotSpaceAuthority",
          "description": "Only the space's authority may disconnect it."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "disconnected",
            "releasedDomains"
          ],
          "properties": {
            "disconnected": {
              "type": "boolean"
            },
            "releasedDomains": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "The hostnames released by the disconnect."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Forget a space: release the domains registered to it, purge under the ordinary grace, discard the credential and the key, and stop renewing. Authority only."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
