RM(1)
NAME
rm, rmdir − remove (unlink) directories or files
USAGE
rm [ −fri ] file ...
rmdir dir ...
DESCRIPTION
Rm removes the entries for one or more files from a directory. If an entry was the last link to the file, the file is destroyed. Removing a file requires write permission in its directory, but neither read nor write permission on the file itself.
If a file has no write permission and the standard input is a terminal, its permissions are printed and a line is read from the standard input. If that line begins with y, the file is deleted; otherwise, the file remains. No questions are asked if the standard input is not a terminal.
Rmdir removes entries for the named directories, which must be empty.
OPTIONS
−f Suppress questions concerning removals.
−r Recursively delete the entire contents of the specified directory, and the directory itself, without printing any error comments.
−i Interactively ask whether to delete each file. With an −r option, ask whether to examine each directory.