rm removes the named
file arguments. By default it does not remove directories. If a file is unwritable, the standard
input is a terminal, and the
--force option is not given,
rm prompts the user for whether to remove the file. An
affirmative response (
y or
Y) removes the file, a quit response (
q or
Q) causes
rm to exit
immediately, and all other responses skip the current file.