Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Message Queue
  • Access management
  • Pricing policy
  • Terraform reference
    • Overview
      • CreateQueue
      • DeleteQueue
      • GetQueueAttributes
      • GetQueueUrl
      • ListQueues
      • PurgeQueue
      • SetQueueAttributes
      • TagQueue
      • UntagQueue
      • ListQueueTags
    • Common errors
  • Monitoring metrics
  • Public materials
  • FAQ

In this article:

  • Request
  • Request parameters
  • Response
  • Successful response fields
  • DeleteQueue errors
  • Sample request
  • Response example
  1. API reference
  2. Queue
  3. DeleteQueue

DeleteQueue

Written by
Yandex Cloud
Updated at October 4, 2024
  • Request
    • Request parameters
  • Response
    • Successful response fields
    • DeleteQueue errors
  • Sample request
  • Response example

Method for deleting a queue. If the specified queue does not exist, Message Queue returns a successful response.

The deletion process takes up to 60 seconds. During this time, some requests might succeed (such as sending messages to that queue), but after 60 seconds the queue and the messages will no longer exist.

Alert

After the queue is deleted, all messages in it become unavailable.

When you delete a queue, you must wait at least 60 seconds before creating another queue with the same name.

Request

Request parameters

Parameter Type Required parameter Description
QueueUrl string Yes URL of a queue. Case-sensitive.

Response

Successful response fields

The response does not contain any fields.

DeleteQueue errors

The method does not return any specific errors. For a list of errors common for all methods, see Common errors.

Sample request

Action=DeleteQueue
&Version=2012-11-05
&QueueUrl=https://message-queue.api.cloud.yandex.net/b1g8ad42m6he********/dj6000000000********/sample-queue

For more information about forming requests, see General API request format.

Response example

<DeleteQueueResponse>
    <ResponseMetadata>
        <RequestId>d9188512-606825cd-4ff7192b-e6a3ae2-037bd301dbd5691216212933********</RequestId>
    </ResponseMetadata>
</DeleteQueueResponse>

Was the article helpful?

Previous
CreateQueue
Next
GetQueueAttributes
Yandex project
© 2025 Yandex.Cloud LLC