> ## Documentation Index
> Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete objects

> Learn how to bulk delete objects in Telnyx Cloud Storage using AWS S3 API commands with practical examples.

# DeleteObjects

[DeleteObjects - Amazon Simple Storage Service](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html)

## Example DeleteObjects request (using AWS S3 CLI)

* Originally 3 objects exists in this bucket

```bash theme={null}
user@host ~ % aws s3api list-objects --bucket created-in-fl-1

{
    "Contents": [
        {
            "Key": "xxx",
            "LastModified": "2023-10-02T19:11:54.788000+00:00",
            "ETag": "\"2da8bc8e8133ec2af9268515aae59e7a\"",
            "Size": 22905,
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "xd",
                "ID": "xd"
            }
        },
        {
            "Key": "yyy",
            "LastModified": "2023-10-02T19:11:38.436000+00:00",
            "ETag": "\"2da8bc8e8133ec2af9268515aae59e7a\"",
            "Size": 22905,
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "xd",
                "ID": "xd"
            }
        },
        {
            "Key": "zzz",
            "LastModified": "2023-10-02T19:11:25.551000+00:00",
            "ETag": "\"2da8bc8e8133ec2af9268515aae59e7a\"",
            "Size": 22905,
            "StorageClass": "STANDARD",
            "Owner": {
                "DisplayName": "xd",
                "ID": "xd"
            }
        }
    ],
    "RequestCharged": null
}

```

* Delete 2 objects

```bash theme={null}
user@host ~ % aws s3api delete-objects --delete '{"Objects":[{"Key":"xxx"},{"Key":"yyy"}]}' --bucket created-in-fl-1

{
    "Deleted": [
        {
            "Key": "xxx"
        },
        {
            "Key": "yyy"
        }
    ]
}
```
