--- title: "delete-objects" slug: "delete-objects" updated: 2026-10-08T04:59:24Z published: 2026-10-08T04:59:24Z canonical: "cli.ncloud-docs.com/delete-objects" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # delete-objects Available in Classic and VPC Bulk delete 2 or more objects stored in a Ncloud Storage bucket at the same time. Note For a Sub Account user to execute this command, they must have the Change/DeleteObject action permission. If you bypass GOVERNANCE retention to delete an item (`--bypass-governance-retention`), you will need the additional Change/BypassGovernanceretention action permission. ## Syntax The `delete-objects` syntax is as follows: ``` aws s3api delete-objects \ --bucket \ --delete \ [--bypass-governance-retention | --no-bypass-governance-retention] \ --endpoint-url ``` ## Options This section describes the options available when running `delete-objects`. ### Required options The following options are required for `delete-objects`. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bucket` | String | Required | Bucket name | | `--delete` | String | Required | List of objects to delete - See [Syntax](/docs/en/delete-objects#delete%EA%B5%AC%EB%AC%B8). | #### `--delete` syntax - Shorthand syntax ``` Objects=[{Key=string,VersionId=string,ETag=string,LastModifiedTime=timestamp,Size=long},{Key=string,VersionId=string,ETag=string,LastModifiedTime=timestamp,Size=long}],Quiet=boolean ``` - JSON syntax ``` { "Objects": [ { "Key": "string", "VersionId": "string", "ETag": "string", "LastModifiedTime": timestamp, "Size": long } ... ], "Quiet": true|false } ``` ### Optional options These are the optional options for `delete-objects`. Options that are not specified will use their default values. | Options | Type | Required | Description | | --- | --- | --- | --- | | `--bypass-governance-retention` | Boolean | Optional | Bypasses the `GOVERNANCE` mode retention settings - Use this to delete object versions with `GOVERNANCE` retention enabled. - Bypass permission required. | | `--no-bypass-governance-retention` | Boolean | Optional | Does not bypass `GOVERNANCE` mode preservation settings. | ### Common options For information about the options common to all `aws` subcommands, see [Ncloud Storage options](/docs/en/storage-ncloudstorage#%EC%98%B5%EC%85%98). ## Examples If the object deletion request is successful, the identification information for each deleted object is returned. ### Command The command example is as follows: ``` aws s3api delete-objects --bucket my-test-bucket \ --delete '{"Objects":[{"Key":"synced/report.txt"}],"Quiet":false}' \ --endpoint-url=https://kr.ncloudstorage.com ``` ### Output The output example is as follows: ``` { "Deleted": [ { "Key": "synced/report.txt" } ] } ``` ## Related commands Related commands are as follows: - [delete-object](/docs/en/delete-object) - [put-object](/docs/en/put-object)