Deleting a message queue
To delete a message queue:
Management console
AWS CLI
Terraform
- Open the Message Queue section.
- Click in the row of the queue to delete.
- In the menu that opens, click Delete.
- 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:
-
In the command line, go to the directory with the Terraform configuration file.
-
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.
-
Confirm the deletion of resources.