The rm command removes/deletes a file or directory in an S3 bucket.
Usage
Argument
| Name | Required | Description |
|---|
s3_path | Yes | 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 S3 bucket name and filename
Option
| Name | Shorthand | Data type | Description |
|---|
--rm_recursive | --rmr | N/A | Delete directory recursively |
Global options
| Name | Shorthand | Data type | Description |
|---|
--help | -h | N/A | Show help message and exit |
--config | -c | String | Path to Hadoop’s core-site.xml file |
--jceks-dir | -j | String | Directory containing JCEKS files |
--ranger-classpath | -r | String | Path to Ranger’s JAR files |
--user | -u | String | Username for Ranger authorization |
--verbose | -v | N/A | Verbose logging |