Yandex.Cloud
  • Services
  • Why Yandex.Cloud
  • Pricing
  • Documentation
  • Contact us
Get started
Yandex Message Queue
  • Getting started
    • Quick start
    • Supported tools
    • Code samples
      • Node.js
      • PHP
      • JMS
      • Laravel
      • Terraform
  • Step-by-step instructions
    • Overview
    • Creating a new message queue
    • Sending messages
    • Receiving and deleting messages
    • Deleting a message queue
  • Concepts
    • Overview
    • Message queues
    • Messages
    • Deduplication
    • Visibility timeout
    • Long Polling
    • Dead Letter Queue
    • Delay queues
    • Quotas and limits
  • Access management
  • Pricing policy
  • Yandex Message Queue API
    • Overview
    • Queue
      • CreateQueue
      • DeleteQueue
      • GetQueueAttributes
      • GetQueueUrl
      • ListQueues
      • PurgeQueue
      • SetQueueAttributes
    • Message
      • ChangeMessageVisibility
      • ChangeMessageVisibilityBatch
      • DeleteMessage
      • DeleteMessageBatch
      • ReceiveMessage
      • SendMessage
      • SendMessageBatch
    • Data types
      • BatchResultErrorEntry
      • ChangeMessageVisibilityBatchRequestEntry
      • ChangeMessageVisibilityBatchResultEntry
      • DeleteMessageBatchRequestEntry
      • DeleteMessageBatchResultEntry
      • Message
      • MessageAttributeValue
      • SendMessageBatchRequestEntry
      • SendMessageBatchResultEntry
    • Common errors
  • Questions and answers
  1. Step-by-step instructions
  2. Deleting a message queue

Deleting a message queue

    To delete a message queue:

    Management console
    AWS CLI
    Terraform
    1. Open the Message Queue section.
    2. Click in the row of the queue to delete.
    3. In the menu that opens, click Delete.
    4. In the window that opens, click Delete.

    Run the following command in the terminal:

    $ aws sqs delete-queue \
                --queue-url https://message-queue.api.cloud.yandex.net/aoegtvhtp8ob9rqq8sto/000000000000002p01jp/sample-queue \
                --endpoint https://message-queue.api.cloud.yandex.net/      
    

    If you created a message queue using Terraform, you can delete it:

    1. In the command line, go to the directory with the Terraform configuration file.

    2. Delete resources using the command:

      $ terraform destroy
      

      Alert

      Terraform deletes all the resources that you created in the current configuration, such as clusters, networks, subnets, and VMs.

    3. Confirm the deletion of resources.

    Language
    Careers
    Privacy policy
    Terms of use
    © 2021 Yandex.Cloud LLC