rm Command Examples

Remove files or directories. See also: rmdir. More information: https://www.gnu.org/software/coreutils/manual/html_node/rm-invocation.html.

rm {{path/to/file1 path/to/file2 ...}}

rm {{[-f|--force]}} {{path/to/file1 path/to/file2 ...}}

rm {{[-i|--interactive]}} {{path/to/file1 path/to/file2 ...}}

rm {{[-v|--verbose]}} {{path/to/file1 path/to/file2 ...}}

rm {{[-r|--recursive]}} {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

rm {{[-d|--dir]}} {{path/to/directory}}