# Delete a change feed subscription
Source: https://www.desktopaccountingapi.com/docs/api/reference/operations/changefeedsubscriptionsdelete/

`DELETE https://api.desktopaccountingapi.com/v1/change-feed-subscriptions/{id}`

Operation ID: `changeFeedSubscriptions.delete`. Tag: Change feed.

Stops polling for this subscription. Resources another subscription still watches keep being polled. Events already sent are not affected.

Authentication: `Authorization: Bearer <secret key>`.

Example request:

```sh
curl -X DELETE https://api.desktopaccountingapi.com/v1/change-feed-subscriptions/cfs_01j9x4m6v4c8k2t7q0r5s3w1zk \
  -H "Authorization: Bearer $DAAPI_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

## Path parameters

- `id` (string, required): Unique identifier for the change feed subscription. example `cfs_01j9x4m6v4c8k2t7q0r5s3w1zk`.

## Headers

- `Idempotency-Key` (string): Makes a write safe to retry. Repeating a key with the same request attaches to or replays the original instead of creating a second one. 1–255 printable ASCII characters, retained 7 days. Reusing a key with a different request returns `422 IDEMPOTENCY_KEY_REUSED`. 1–255 characters; example `6f1c2a0e-1f7e-4c55-9a7a-0b2d2c9e3a10`.

## Responses

### 200

The subscription was deleted.

Body (application/json): object (ChangeFeedSubscriptionDeleted).

- `id` (string, required): Unique identifier for the change feed subscription. example `cfs_01j9x4m6v4c8k2t7q0r5s3w1zk`.
- `objectType` (string, required): Always `change_feed_subscription`. one of `change_feed_subscription`.
- `deleted` (boolean, required): Always `true`. one of `true`.

### Errors

Every error body is the error object described at https://www.desktopaccountingapi.com/docs/errors/.

- `400`: The request is invalid. Codes: `UNKNOWN_HEADER`, `INVALID_PARAMETER`, `IDEMPOTENCY_KEY_INVALID`.
- `401`: The API key is missing or invalid. Codes: `API_KEY_MISSING`, `API_KEY_INVALID`.
- `403`: The operation is not permitted. Codes: `API_KEY_READ_ONLY`.
- `404`: The object does not exist in this project. Codes: `RESOURCE_MISSING`.
- `422`: The request is well formed but cannot be processed. Codes: `IDEMPOTENCY_KEY_REUSED`.
- `429`: Too many requests. Codes: `RATE_LIMITED`.
- `500`: Unexpected server error. Codes: `INTERNAL_ERROR`.
- `503`: QuickBooks Desktop or the service is not available. Codes: `SERVICE_UNAVAILABLE`.
