[Yandex Cloud documentation](../../../index.md) > [Yandex Data Streams](../../index.md) > [Step-by-step guides](../index.md) > Working with the AWS CLI > Deleting a stream

# Deleting a stream in the AWS CLI

{% list tabs group=instructions %}

- CLI {#cli}

  To delete a [stream](../../concepts/glossary.md#stream-concepts), run this command:

  ```bash
  aws kinesis delete-stream \
    --endpoint <endpoint> \
    --stream-name <stream_ID>
  ```

  * `--endpoint`: Specify the `https://yds.serverless.yandexcloud.net` endpoint to delete a stream that receives data over the AWS Kinesis Data Streams protocol.
  * `--stream-name`: Consists of the availability zone, folder ID, Yandex Managed Service for YDB database ID, and stream name.

     >For example, your stream ID will appear as `/ru-central1/aoeu1kuk2dht********/cc8029jgtuab********/aws_stream` if:
     >* `aws_stream`: Stream name.
     >* `ru-central1`: Region.
     >* `aoeu1kuk2dht********`: Folder ID.
     >* `cc8029jgtuab********`: YDB database ID.

  Command example:

  ```bash
  aws kinesis delete-stream \
    --endpoint https://yds.serverless.yandexcloud.net \
    --stream-name /ru-central1/aoeu1kuk2dht********/cc8029jgtuab********/aws_stream
  ```

{% endlist %}