Deleting a message queue
Written by
Updated at October 4, 2024
To delete a message queue:
Management console
AWS CLI
Terraform
- In the management console
, select the folder the queue belongs to. - Select Message Queue.
- In the row of the queue you need, click
and select Delete. - In the window that opens, click Delete.
-
Get the URL of the message queue to be deleted:
aws sqs list-queues \ --endpoint <endpoint>
Where
--endpoint
is the endpoint in thehttps://message-queue.api.cloud.yandex.net/
value. -
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 thehttps://message-queue.api.cloud.yandex.net/
value.
If you created a message queue using Terraform, you can delete it:
-
In the command line, go to the folder with the Terraform configuration file.
-
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.
-
Type
yes
and press Enter.