openapi: 3.2.0 info: title: Amazon S3 (bucket-level) Delete API description: '1 operations from the Amazon S3 REST API, generated from the authoritative service model. S3 identifies these operations by the `delete` query subresource, which is declared as a required query parameter on each one because an OpenAPI path cannot carry a query string. Generated from boto/botocore `service-2.json` at `aeb03fc4ae530e0b3f47d588b6021581db870c8c` (Apache-2.0). Responses are XML.' version: '2006-03-01' contact: name: AWS Support url: https://aws.amazon.com/premiumsupport/ servers: - url: https://s3.{region}.amazonaws.com variables: region: default: us-east-1 tags: - name: Delete paths: /{Bucket}: post: operationId: DeleteObjects summary: This operation enables you to delete multiple objects from a bucket using a… description: This operation enables you to delete multiple objects from a bucket using a single HTTP request. If you know the object keys that you want to delete, then this operation provides a suitable alternative to sending individual delete requests, reducing per-request overhead. The request can contain a list of up to 1,000 keys that you want to delete. In the XML, you provide the object key names, and optionally, version IDs if you want to delete a specific version of the object from a versioning-enabled bucket. For each key, Amazon S3 performs a delete operation and returns the result of that delete, success or failure, in the response. If the object specified in the request isn't found, Amazon S3 confirms the deletion by returning the result as deleted. Directory buckets - S3 Versioning isn't enabled and supported for directory buckets. Directory buckets - For directory buckets, you must make requests for this API operation to the Zonal endpoint. These endpoints support virtual-hosted-style requests in the format https://amzn-s3-demo-bucket.s3express-zone-id.region-code.amazonaws.com/key-name . Path-style requests are not supported. For more information about endpoints in Availability Z tags: - Delete parameters: - name: delete in: query required: true description: Selects this operation. S3 identifies it by the `delete` subresource. schema: type: string - name: Bucket in: path required: true description: The bucket name containing the objects to delete. Directory buckets - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format Bucket-name.s3expres schema: type: string - name: x-amz-mfa in: header required: false description: 'The concatenation of the authentication device''s serial number, a space, and the value that is displayed on your authentication device. Required to permanently delete a versioned object if versioning ' schema: type: string - name: x-amz-request-payer in: header required: false schema: type: string enum: - requester - name: x-amz-bypass-governance-retention in: header required: false description: Specifies whether you want to delete this object even if it has a Governance-type Object Lock in place. To use this header, you must have the s3:BypassGovernanceRetention permission. This functionalit schema: type: boolean - name: x-amz-expected-bucket-owner in: header required: false description: The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied) schema: type: string - name: x-amz-sdk-checksum-algorithm in: header required: false description: 'Indicates the algorithm used to create the checksum for the object when you use the SDK. This header will not provide any additional functionality if you don''t use the SDK. When you send this header, ' schema: type: string enum: - CRC32 - CRC32C - SHA1 - SHA256 - CRC64NVME - SHA512 - MD5 - XXHASH64 - XXHASH3 - XXHASH128 responses: '200': description: Success. S3 answers in XML, not JSON. x-output-shape: DeleteObjectsOutput '403': description: AccessDenied. S3 validates the signature before it routes the operation, so this does not distinguish an unsupported operation from an unauthorised one. externalDocs: description: Amazon S3 API Reference url: https://docs.aws.amazon.com/AmazonS3/latest/API/