---
title: "Remove a queue blackout"
description: "PubNio API queues.blackouts.delete: remove a queue blackout. Request fields, examples in five clients, errors, and idempotency."
---

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

# Remove a queue blackout

Remove a queue blackout with [`DELETE /api/v1/queues/{queueId}/blackouts/{blackoutId}`](https://pubnio.com/api/v1/docs#tag/queues/DELETE/api/v1/queues/{queueId}/blackouts/{blackoutId}). Requires an API key with the `publish` scope or a signed-in workspace owner.

## Request

| Parameter     | In    | Type | Required |
| ------------- | ----- | ---- | -------- |
| `queueId`     | path  | UUID | Yes      |
| `blackoutId`  | path  | UUID | Yes      |
| `workspaceId` | query | UUID | Yes      |

## Response

- HTTP 200: `QueueDeleted` with `deleted`.

The [OpenAPI document](https://pubnio.com/api/v1/openapi) has each field's type.

## Examples

### TypeScript

```ts
const removed = await workspace.queues.unblackout(queueId, blackoutId);
```

### Python

```python
removed = workspace.queues.delete_blackout(queue_id, blackout_id)
```

### cURL

```sh
curl -X DELETE "https://pubnio.com/api/v1/queues/$QUEUE_ID/blackouts/$BLACKOUT_ID?workspaceId=$WORKSPACE_ID" \
  -H "Authorization: Bearer $PUBNIO_API_KEY"
```

### CLI

```sh
pnio queues unblackout "$QUEUE_ID" --blackout-id "$BLACKOUT_ID"
```

### MCP execute

```js
async () => {
  const queueId = "<queueId>";
  const blackoutId = "<blackoutId>";
  const response = await codemode.request({
    method: "DELETE",
    path: `/api/v1/queues/${queueId}/blackouts/${blackoutId}`,
    query: { workspaceId: codemode.workspaceId },
  });
  return response.data;
};
```

## Errors

It declares no problem of its own.

It declares the problems [most operations](https://pubnio.com/docs/reference/#shared-problems) declare.

## Idempotency

No key, so a retried `DELETE` is not deduplicated. Read the current state before you retry.

## Limits

- Field lengths and ranges are in the [OpenAPI document](https://pubnio.com/api/v1/openapi).

## Related

- [Queues operations](https://pubnio.com/docs/reference/#queues)
- [Publishing](https://pubnio.com/docs/publishing/)

Source: https://pubnio.com/docs/reference/queues-blackouts-delete/index.mdx
