Skip to main content
The rm command removes/deletes a file or directory in an S3 bucket.

Usage

s3Cli rm <s3_path>

Argument

NameRequiredDescription
s3_pathYesS3 bucket name, or S3 bucket name and filename
In the s3_path, don’t include prefixes such as s3://, s3a://, and s3n://. Only specify the S3 bucket name, or S3 bucket name and filename

Option

NameShorthandData typeDescription
--rm_recursive--rmrN/ADelete directory recursively

Global options

NameShorthandData typeDescription
--help-hN/AShow help message and exit
--config-cStringPath to Hadoop’s core-site.xml file
--jceks-dir-jStringDirectory containing JCEKS files
--ranger-classpath-rStringPath to Ranger’s JAR files
--user-uStringUsername for Ranger authorization
--verbose-vN/AVerbose logging