> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nx1cloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# rm

> Delete a file or directory from a bucket.

The `rm` command removes/deletes a file or directory in an S3 bucket.

```bash theme={null}
s3Cli rm <s3_path>
```

<Accordion title="Argument">
  * `s3_path` `string` **required**: S3 bucket name, or S3 bucket name and filename.

  <Note>
    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 filename
  </Note>
</Accordion>

<Accordion title="Option">
  * `--rm_recursive` `--rmr` **optional**: Deletes a directory recursively.
</Accordion>

<Accordion title="Global options">
  * `--help` `-h` **optional**: Shows help messages and exits.
  * `--config` `-c` `string` **optional**: Path to Hadoop's `core-site.xml` file.
  * `--jceks-dir` `-j` `string` **optional**: Directory containing JCEKS files.
  * `--ranger-classpath` `-r` `string` **optional**: Path to Ranger's JAR files.
  * `--user` `-u` `string` **optional**: Username for Ranger authorization.
  * `--verbose` `-v` **optional**: Verbose logging.
</Accordion>
