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

# Delete Subscription

> Remove a subscription by the identifier.

#### Path Parameters

<ParamField path="subscription_id" type="integer" required>ID of the subscription.</ParamField>

#### Headers

<ParamField header="QB-Token" type="string" required> A user or application session token. See [Authentication](/reference/authentication) page to learn more about session tokens. Must be used either QB-Token or Authorization. </ParamField>

#### Responses

<AccordionGroup>
  <Accordion title="200">
    A successful response.
  </Accordion>

  <Accordion title="403">
    An error response

    <ResponseField name="code" type="string" />

    <ResponseField name="message" type="string" />
  </Accordion>

  <Accordion title="404">
    An error response

    <ResponseField name="code" type="string" />

    <ResponseField name="message" type="string" />
  </Accordion>
</AccordionGroup>

<RequestExample>
  ```bash cURL theme={null}
  curl -i -X DELETE \
  -H "QB-Token: 37d3a10a1843ac780cb6f2c683bddad2b0012bba" \
  https://api.quickblox.com/subscriptions/56328256.json
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  Empty body
  ```

  ```json 403 theme={null}
  {
    "code": null,
    "message": "Your access to the device_subscription has been restricted, because you are not the owner."
  }
  ```

  ```json 404 theme={null}
  {
    "code": null,
    "message": "Couldn't find DeviceSubscription with 'id'=123"
  }
  ```
</ResponseExample>
