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
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
    • Yandex Cloud Partner program
  • Blog
  • Pricing
  • Documentation
© 2025 Direct Cursus Technology L.L.C.
Yandex Message Queue
    • Overview
    • Configuring the AWS CLI
    • Creating a new message queue
    • Sending messages
    • Receiving and deleting messages
    • Deleting a message queue
    • Managing queue labels
    • Monitoring processes in queues
  • Access management
  • Pricing policy
  • Terraform reference
  • Monitoring metrics
  • Public materials
  • FAQ
  1. Step-by-step guides
  2. Deleting a message queue

Deleting a message queue

Written by
Yandex Cloud
Updated at March 6, 2025

To delete a message queue:

Management console
AWS CLI
Terraform
  1. In the management console, select the folder the queue belongs to.
  2. Select Message Queue.
  3. In the row of the queue you need, click and select Delete.
  4. In the window that opens, click Delete.
  1. Get the URL of the message queue to be deleted:

    aws sqs list-queues \
      --endpoint <endpoint>
    

    Where --endpoint is the endpoint in the https://message-queue.api.cloud.yandex.net/ value.

  2. Delete the message queue:

    aws sqs delete-queue \
      --queue-url <queue_URL> \
      --endpoint <endpoint>
    

    Where:

    • --queue-url: URL of the queue to be deleted.
    • --endpoint: Endpoint in the https://message-queue.api.cloud.yandex.net/ value.

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

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

  2. Delete the resources using this command:

    terraform destroy
    

    Alert

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

  3. Type yes and press Enter.

Was the article helpful?

Previous
Receiving and deleting messages
Next
Managing queue labels
© 2025 Direct Cursus Technology L.L.C.