rm command removes/deletes a file or directory in an S3 bucket.
Argument
Argument
s3_pathstringrequired: S3 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 the S3 bucket name and filenameOption
Option
--rm_recursive--rmroptional: Deletes a directory recursively.
Global options
Global options
--help-hoptional: Shows help messages and exits.--config-cstringoptional: Path to Hadoop’score-site.xmlfile.--jceks-dir-jstringoptional: Directory containing JCEKS files.--ranger-classpath-rstringoptional: Path to Ranger’s JAR files.--user-ustringoptional: Username for Ranger authorization.--verbose-voptional: Verbose logging.