aws s3 rm <paths>

Deletes an S3 object

Arguments

NameDescription
paths

Options

NameDescription
--dryrunDisplays the operations that would be performed using the specified command without actually running them
--quietDoes not display the operations performed from the specified command
--recursiveCommand is performed on all files or objects under the specified directory or prefix
--request-payer <string>Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. Documentation on downloading objects from requester pays buckets can be found at http://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html
--include <string>Don't exclude files or objects in the command that match the specified pattern. See Use of Exclude and Include Filters for details
--exclude <string>Exclude all files or objects from the command that matches the specified pattern
--only-show-errorsOnly errors and warnings are displayed. All other output is suppressed
--page-size <integer>The number of results to return in each response to a list operation. The default value is 1000 (the maximum allowed). Using a lower value may help if an operation times out