# us.off-the-clock.push.unregisterPushSubscription

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.unregisterPushSubscription)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.unregisterPushSubscription/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.unregisterPushSubscription/examples)

## Definitions

### `us.off-the-clock.push.unregisterPushSubscription`

**Type**: `procedure`

Removes one of the viewer's subscriptions, named by its endpoint or by the id getPushSettings gave it. Anyone else's is left alone.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `endpoint` | `string` (uri) | No |  |
| `id` | `string` | No |  |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **InvalidRequest**
- **NotSpaceMember**

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Removes one of the viewer's subscriptions, named by its endpoint or by the id getPushSettings gave it. Anyone else's is left alone.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endpoint": {
              "format": "uri",
              "maxLength": 1024,
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.push.unregisterPushSubscription",
  "lexicon": 1
}
```
