# social.colibri.notification.unregisterPush

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

## Links

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

## Definitions

### `social.colibri.notification.unregisterPush`

**Type**: `procedure`

Removes a push subscription.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `endpoint` | `string` | Yes | The Web Push endpoint URL or FCM registration token to remove. |
| `provider` | `string` | No | Defaults to "web" if omitted. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `unregistered` | `boolean` | Yes |  |

#### Errors

- **AuthRequired**: Missing, malformed, or unverifiable service auth.

## Raw Schema

```json
{
  "id": "social.colibri.notification.unregisterPush",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "endpoint"
          ],
          "properties": {
            "endpoint": {
              "type": "string",
              "description": "The Web Push endpoint URL or FCM registration token to remove."
            },
            "provider": {
              "type": "string",
              "description": "Defaults to \"web\" if omitted.",
              "knownValues": [
                "web",
                "fcm"
              ]
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "Missing, malformed, or unverifiable service auth."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "unregistered"
          ],
          "properties": {
            "unregistered": {
              "type": "boolean"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Removes a push subscription."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
