# social.colibri.beta.notification.unregisterPush

> 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.notification.unregisterPush)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.unregisterPush/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.unregisterPush/examples)

## Definitions

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

**Type**: `procedure`

Removes a previously registered push endpoint.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `token` | `string` | No | The FCM registration token to remove. |
| `endpoint` | `string` (uri) | No | The Web Push subscription endpoint to remove. |
| `provider` | `string` | Yes | The push provider to unregister from. |

#### Output

**Encoding**: `application/json`

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

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **InvalidRequest**: The arguments are inconsistent or malformed beyond schema validation.

## Raw Schema

```json
{
  "id": "social.colibri.beta.notification.unregisterPush",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "provider"
          ],
          "properties": {
            "token": {
              "type": "string",
              "description": "The FCM registration token to remove."
            },
            "endpoint": {
              "type": "string",
              "format": "uri",
              "description": "The Web Push subscription endpoint to remove."
            },
            "provider": {
              "type": "string",
              "description": "The push provider to unregister from.",
              "knownValues": [
                "webpush",
                "fcm"
              ]
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request has no valid service auth."
        },
        {
          "name": "InvalidRequest",
          "description": "The arguments are inconsistent or malformed beyond schema validation."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "properties": {}
        },
        "encoding": "application/json"
      },
      "description": "Removes a previously registered push endpoint."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
