# Delete a specific Pub/Sub channel

> **DELETE** `https://api.us.nylas.com/v3/channels/pubsub/{id}`

Source: https://developer.nylas.com/docs/reference/api/pubsub-notifications/delete-pubsub-by-id/

Delete a specific Pub/Sub channel from a specific Nylas application.

**Authentication:** NYLAS_API_KEY

## Parameters

### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `id` | string | Yes | The ID of the Pub/Sub channel to retrieve. |

## Responses

### 200 - Returns a success message.

- `data` (object)
  - `status` (string)
- `request_id` (string) - The ID for each request.

### 400 - Notification channel not deleted

- `error` (object)
  - `type` (string) - An alphanumeric code that represents the error type.
  - `message` (string) - A human readable message with details about the error.
- `request_id` (string) - The unique ID of the request that generated this response.

## Code samples

### cURL

```bash
curl --request DELETE \
  --url 'https://api.us.nylas.com/v3/channels/pubsub/<PUBSUB_ID>' \
  --header 'Accept: application/json' \
  --header 'Authorization: Bearer <NYLAS_API_KEY>' \
```
