# town.delve.membership.withdraw

> Published by [delve.town](https://lexicon.garden/identity/did:plc:qzqct2rrq4u2gmy5g3mjxske)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.withdraw)
- [Documentation](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.withdraw/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:qzqct2rrq4u2gmy5g3mjxske/town.delve.membership.withdraw/examples)

## Definitions

### `town.delve.membership.withdraw`

**Type**: `procedure`

Leave the town. Existing posts stay; nothing new is indexed. Requires auth.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `revision` | `integer` | No |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `membership` | `ref` → `town.delve.membership.defs#membership` | Yes |  |

#### Errors

- **MembershipChanged**
- **MembershipDisabled**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Leave the town. Existing posts stay; nothing new is indexed. Requires auth.",
      "errors": [
        {
          "name": "MembershipChanged"
        },
        {
          "name": "MembershipDisabled"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "revision": {
              "type": "integer"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "membership": {
              "ref": "town.delve.membership.defs#membership",
              "type": "ref"
            }
          },
          "required": [
            "membership"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "town.delve.membership.withdraw",
  "lexicon": 1
}
```
