[Yandex Cloud documentation](../../index.md) > [Yandex Message Queue](../index.md) > [Step-by-step guides](index.md) > Deleting a message queue

# Deleting a message queue

To delete a message queue:

{% list tabs group=instructions %}

- Management console {#console}

  1. In the [management console](https://console.yandex.cloud), select the folder the queue belongs to.
  1. Navigate to **Message Queue**.
  1. In the row of the queue, click ![image](../../_assets/console-icons/ellipsis.svg) and select **Delete**.
  1. In the window that opens, click **Delete**.
  
- AWS CLI {#cli}
  
  1. Get the URL of the message queue to be deleted:
  
     ```bash
     aws sqs list-queues \
       --endpoint <endpoint>
     ```

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

  1. Delete the message queue:
  
     ```bash
     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.

- Terraform {#tf}

  If you created a message queue using Terraform, you can delete it:
  1. In the command line, navigate to the directory with the Terraform configuration file.
  1. Delete the resources using this command:

     ```bash
     terraform destroy
     ```

     {% note alert %}

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

     {% endnote %}

  1. Type `yes` and press **Enter**.

{% endlist %}