---
updatedAt: 2026-04-18T02:06:13.000Z
---

# Delete a queue

Deletes a queue by its ID. Supports both hard delete (permanent removal) and soft delete (recoverable, marks as deleted without removing from the database).

## Finding Your Customer Subdomain

Your subdomain is found in your Avaya Infinity portal URL and is required for all API calls.

**Example:** If your portal URL is:

```
https://core.avaya1234.ec.avayacloud.com/app/core-config-ui/
```

Your subdomain is: **`avaya1234`**

**To use this API:**

1. **Find your subdomain** from your Infinity portal URL (as shown above)
2. **Get your Bearer token** using the `ADMIN_API_CONSUMER` client credential (see Authentication below)
3. **In the API explorer on the right:**
   * Click on `{customerId}` in the URL field and replace it with your actual subdomain
   * Paste your Bearer token in the Credentials section
   * Enter the `id` of the queue to delete and set `softDelete` as needed

## Authentication

This endpoint requires a valid OAuth 2.0 Bearer token. To get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `ADMIN_API_CONSUMER` scope.

Once you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.

## Working with Soft Delete

By default, `softDelete=false` performs a hard delete — the queue is permanently removed and cannot be recovered.

Set `softDelete=true` to mark the queue as deleted without permanently removing it. Soft-deleted queues:
* Are excluded from standard `GET /queues` list results
* Remain in the database and may be recoverable for audit purposes
* Cannot be interacted with via normal queue operations

## Important Notes

* **This action cannot be undone** for hard deletes. Confirm the correct queue ID before proceeding.
* Returns a `404` if no queue exists with the specified ID.
* Returns `204 No Content` on success — no response body is returned.

## DOS Protection & Rate Limiting

* This endpoint implements DOS protection and rate limiting.

## Security Implementation Guidelines

* Never expose your `client_secret` or Bearer token to client-side applications.
* Implement proper error handling — avoid surfacing internal error details to end users.


# OpenAPI definition

````json
{
  "openapi": "3.1.1",
  "info": {
    "title": "Queue Management API",
    "description": "The Queue Management API allows for the programmatic creation, retrieval, updating, and deletion of queues. Queues are collections of agents used for routing customer interactions. Organizations that manage large numbers of queues or need to integrate queue configuration into external applications and workflows will find this API useful as an alternative to manual administration through the Infinity portal.\n\n## Endpoints\n\n### Create a Queue\n`POST /queues`\nCreate a new queue with a specified name and configuration.\n\n### List Queues\n`GET /queues`\nRetrieve a paginated list of queues, with optional filters for name, status, folder, and type.\n\n### Get a Queue\n`GET /queues/{id}`\nRetrieve full configuration details for a specific queue by its ID.\n\n### Update a Queue\n`PUT /queues/{id}`\nUpdate the configuration of an existing queue. All fields are optional — only provided fields are updated.\n\n### Delete a Queue\n`DELETE /queues/{id}`\nPermanently or soft-delete a queue by its ID.\n\n## Getting Started\n\n### Find Your Customer Subdomain\n\nYour subdomain is found in your Avaya Infinity portal URL and is required for all API calls.\n\n**Example:** If your portal URL is:\n\n```\nhttps://core.avaya1234.ec.avayacloud.com/app/core-config-ui/\n```\n\nYour subdomain is: **`avaya1234`**\n\nAll API requests use this base URL format:\n\n```\nhttps://core.{customerId}.ec.avayacloud.com/api/config/v1/...\n```\n\n### Authentication\n\nThis API requires a valid OAuth 2.0 Bearer token. To get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the **`ADMIN_API_CONSUMER`** scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.\n\n```\nPOST https://core.avaya1234.ec.avayacloud.com/auth/realms/avaya/protocol/openid-connect/token\nContent-Type: application/x-www-form-urlencoded\n\ngrant_type=client_credentials&client_id=<your_client_id>&client_secret=<your_client_secret>&scope=ADMIN_API_CONSUMER\n```\n\n### Working with Queue IDs\n\nQueue IDs are system-generated unique identifiers assigned when a queue is created. They are distinct from the queue's display name and follow the format `003xxxxxxxxxxxxxxxxxxxxxxx`.\n\nQueue IDs can be found:\n- In the response body of a `POST /queues` or `GET /queues` request\n- In the Avaya Infinity portal URL when viewing a queue's configuration\n\n### Important Notes\n\n* Queue names must be unique within your organization. Submitting a duplicate name returns a `422` error.\n* The `name` filter on `GET /queues` performs a prefix/contains match, not an exact match.\n* Soft-deleted queues are excluded from standard list and search results but remain recoverable.\n* Fields marked as pending engineering confirmation (`isQPerformance`, `eliteSkillAddress`, `keyLinkedIdPath`, `sttPlan`, `configDetails`, `workflows`, `customDataDisplay`) should be treated as advanced configuration — contact Avaya Developer Support before use.\n",
    "version": "0.0.1",
    "contact": {
      "name": "Avaya Developer Support",
      "url": "https://developers.avayacloud.com/avaya-infinity/"
    },
    "license": {
      "name": "Avaya Software Development Kit (SDK) Software License Terms",
      "url": "https://support.avaya.com/css/P8/documents/101038288"
    }
  },
  "servers": [
    {
      "url": "https://core.{customerId}.ec.avayacloud.com/api/config/v1",
      "description": "Production",
      "variables": {
        "customerId": {
          "description": "Your organization subdomain identifier (e.g., avaya1234)",
          "default": "avaya1234"
        }
      }
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Queues",
      "description": "Queue lifecycle management — create, retrieve, update, and delete queues."
    }
  ],
  "paths": {
    "/queues/{id}": {
      "delete": {
        "summary": "Delete a queue",
        "operationId": "deleteQueue",
        "tags": [
          "Queues"
        ],
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "description": "Deletes a queue by its ID. Supports both hard delete (permanent removal) and soft delete (recoverable, marks as deleted without removing from the database).\n\n## Finding Your Customer Subdomain\n\nYour subdomain is found in your Avaya Infinity portal URL and is required for all API calls.\n\n**Example:** If your portal URL is:\n\n```\nhttps://core.avaya1234.ec.avayacloud.com/app/core-config-ui/\n```\n\nYour subdomain is: **`avaya1234`**\n\n**To use this API:**\n\n1. **Find your subdomain** from your Infinity portal URL (as shown above)\n2. **Get your Bearer token** using the `ADMIN_API_CONSUMER` client credential (see Authentication below)\n3. **In the API explorer on the right:**\n   * Click on `{customerId}` in the URL field and replace it with your actual subdomain\n   * Paste your Bearer token in the Credentials section\n   * Enter the `id` of the queue to delete and set `softDelete` as needed\n\n## Authentication\n\nThis endpoint requires a valid OAuth 2.0 Bearer token. To get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `ADMIN_API_CONSUMER` scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it in the `Authorization: Bearer <token>` header of each request.\n\n## Working with Soft Delete\n\nBy default, `softDelete=false` performs a hard delete — the queue is permanently removed and cannot be recovered.\n\nSet `softDelete=true` to mark the queue as deleted without permanently removing it. Soft-deleted queues:\n* Are excluded from standard `GET /queues` list results\n* Remain in the database and may be recoverable for audit purposes\n* Cannot be interacted with via normal queue operations\n\n## Important Notes\n\n* **This action cannot be undone** for hard deletes. Confirm the correct queue ID before proceeding.\n* Returns a `404` if no queue exists with the specified ID.\n* Returns `204 No Content` on success — no response body is returned.\n\n## DOS Protection & Rate Limiting\n\n* This endpoint implements DOS protection and rate limiting.\n\n## Security Implementation Guidelines\n\n* Never expose your `client_secret` or Bearer token to client-side applications.\n* Implement proper error handling — avoid surfacing internal error details to end users.\n",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/QueueId"
            },
            "description": "The unique identifier of the queue to delete."
          },
          {
            "name": "softDelete",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "If `true`, performs a soft delete — marks the queue as deleted without permanently removing it. If `false` (default), performs a hard delete and permanently removes the queue."
          }
        ],
        "responses": {
          "204": {
            "description": "Queue deleted successfully. No content returned."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "422": {
            "$ref": "#/components/responses/UnprocessableEntity"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "OAuth 2.0 Bearer Token authentication using the client credentials flow.\n\nTo get started, contact Avaya Support to request a `client_id` and `client_secret` provisioned with the `ADMIN_API_CONSUMER` scope.\n\nOnce you have your credentials, [generate an access token](https://developers.avayacloud.com/avaya-infinity/reference/access-token) and include it as: `Authorization: Bearer <access_token>`\n"
      }
    },
    "schemas": {
      "QueueId": {
        "type": "string",
        "description": "The unique identifier of a queue.",
        "minLength": 23,
        "maxLength": 26,
        "pattern": "^003[0-9a-f]{20,23}$",
        "example": "003d010826307dd6630992437c"
      },
      "Problem": {
        "type": "object",
        "description": "Problem detail as defined by RFC 7807 — a standard way to carry machine-readable error details in HTTP responses.\n",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A URI identifying the problem type.",
            "default": "about:blank",
            "example": "about:blank"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short, human-readable summary of the problem type.",
            "example": "Service Unavailable"
          },
          "status": {
            "type": [
              "integer",
              "null"
            ],
            "format": "int32",
            "description": "The HTTP status code for this occurrence of the problem.",
            "minimum": 100,
            "maximum": 600,
            "exclusiveMaximum": true,
            "example": 503
          },
          "detail": {
            "type": [
              "string",
              "null"
            ],
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "example": "Connection to database timed out"
          },
          "instance": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "A URI identifying the specific occurrence of the problem."
          },
          "violations": {
            "type": [
              "array",
              "null"
            ],
            "description": "A list of field-level validation violations, present on 400 and 422 responses.",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string",
                  "description": "The name of the field that caused the violation.",
                  "example": "name"
                },
                "message": {
                  "type": "string",
                  "description": "A human-readable explanation of the violation.",
                  "example": "Queue name is required"
                },
                "code": {
                  "type": "integer",
                  "format": "int32",
                  "description": "A stable violation code. Use this in error handling logic — the message text may change.",
                  "example": 20001
                }
              }
            }
          }
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad Request - Validation error",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorBadRequest"
              }
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized - Authentication required",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorUnauthorized"
              }
            }
          }
        }
      },
      "Forbidden": {
        "description": "Forbidden - Insufficient permissions",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorForbidden"
              }
            }
          }
        }
      },
      "NotFound": {
        "description": "Resource not found",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorNotFound"
              }
            }
          }
        }
      },
      "UnprocessableEntity": {
        "description": "Unprocessable Entity - Semantic error",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorUnprocessableEntity"
              },
              "duplicateName": {
                "$ref": "#/components/examples/ErrorUnprocessableEntityDuplicateName"
              }
            }
          }
        }
      },
      "InternalServerError": {
        "description": "Internal Server Error",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            },
            "examples": {
              "default": {
                "$ref": "#/components/examples/ErrorInternalServerError"
              }
            }
          }
        }
      }
    },
    "examples": {
      "ErrorBadRequest": {
        "description": "Bad Request - Validation error",
        "value": {
          "type": "about:blank",
          "title": "Constraint Violation",
          "status": 400,
          "detail": "A problem that indicates a syntactically correct, yet semantically illegal request. The Server can not process this request until the client resolves the semantic errors described in the violations section.",
          "violations": [
            {
              "field": "name",
              "message": "Queue name is required",
              "code": 20001
            }
          ]
        }
      },
      "ErrorUnauthorized": {
        "description": "Unauthorized",
        "value": {
          "type": "about:blank",
          "title": "Unauthorized",
          "status": 401,
          "detail": "This operation requires authentication."
        }
      },
      "ErrorForbidden": {
        "description": "Forbidden",
        "value": {
          "type": "about:blank",
          "title": "Forbidden",
          "status": 403,
          "detail": "According to the access control policy the current user and/or accountId does not have permission to access this resource."
        }
      },
      "ErrorNotFound": {
        "description": "Not Found",
        "value": {
          "type": "about:blank",
          "title": "Resource Not Found",
          "status": 404,
          "detail": "Queue with the specified ID was not found.",
          "instance": "/api/config/v1/queues/003d010826307dd6630992437c"
        }
      },
      "ErrorUnprocessableEntity": {
        "description": "Validation failed",
        "value": {
          "type": "about:blank",
          "title": "Validation failed",
          "status": 422,
          "detail": "A problem that indicates a syntactically correct, yet semantically illegal request. The Server can not process this request until the client resolves the semantic errors described in the violations section.",
          "violations": [
            {
              "field": "scoreCardId",
              "message": "Both scoreCardId and scoreCardVersionId must be provided together",
              "code": 20002
            }
          ]
        }
      },
      "ErrorUnprocessableEntityDuplicateName": {
        "description": "Duplicate queue name",
        "value": {
          "type": "about:blank",
          "title": "Validation failed",
          "status": 422,
          "detail": "A problem that indicates a syntactically correct, yet semantically illegal request.",
          "violations": [
            {
              "field": "name",
              "message": "name must be unique",
              "code": 20003
            }
          ]
        }
      },
      "ErrorInternalServerError": {
        "description": "Server Error",
        "value": {
          "type": "about:blank",
          "title": "Server Error",
          "status": 500,
          "detail": "An internal server error was encountered."
        }
      }
    }
  }
}
````