> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salesive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete subscription

> Delete a specific push subscription.

## Request

```http theme={null}
DELETE /push-subscriptions/678bd7e2e37452d19efcb4e9
Authorization: Bearer {{token}}
x-shop-id: {{shopId}}
```

## Headers

| Header          | Type   | Description                                   |
| --------------- | ------ | --------------------------------------------- |
| `Authorization` | string | Provide the customer token as `Bearer <jwt>`. |
| `x-shop-id`     | string | Identify the shop.                            |

## Path parameters

| Parameter        | Type   | Required | Description              |
| ---------------- | ------ | -------- | ------------------------ |
| `subscriptionId` | string | Yes      | Subscription identifier. |

## Successful response

```json theme={null}
{
    "status": 200,
    "success": true,
    "message": "Subscription deleted",
    "data": {}
}
```

## Error response

```json theme={null}
{
    "status": 404,
    "success": false,
    "message": "Subscription not found",
    "data": {}
}
```


## OpenAPI

````yaml DELETE /push-subscriptions/{subscriptionId}
openapi: 3.1.0
info:
  title: Salesive Store API
  description: >-
    REST interface for querying products, categories, and merchandising banners
    exposed by Salesive storefronts.
  version: 1.0.0
servers:
  - description: Production
    url: https://store.salesive.com/api/v1
security:
  - BearerAuth: []
    ShopIdHeader: []
paths:
  /push-subscriptions/{subscriptionId}:
    delete:
      summary: Delete subscription
      description: Delete a specific push subscription.
      parameters:
        - name: subscriptionId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Subscription deleted
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT issued by the Salesive Store API for authenticated shoppers.
    ShopIdHeader:
      type: apiKey
      in: header
      name: x-shop-id
      description: >-
        Optional storefront identifier sent as a header to scope responses to a
        specific shop. Try It requests remember this value once provided.

````