This page is a reference on the GNU rm command, used to delete files and directories. It should be relevant for both Ubuntu and Debian, as well as other GNU/linux systems.
Here are some of the common options for the rm command used in terminal. Don't forget that you can also just browse your way to the directory, if you prefer to use the GUI – simply right click on the directory or file you want to delete, and chose Move to Trash – but this may require that you run your file manager with sudo from the terminal. I.e..
|Option||What is this?|
|-v or --verbose||Show what is being done. I.e. Prints the filename, before removing the file.|
|-f or --force||Ignore nonexistent files and doesn't prompt the user.|
|-i||Prompt the user before removing each file.|
|-I||Prompt once whether to proceed with the command, if more than three files are named or if a recursive removal is requested.|
|--interactive=once||Prompt once whether to proceed with the command, if more than three files are named or if a recursive removal is requested.|
|--interactive=never||Show no Prompts to the user at all.|
|--interactive=always||Prompt for every file being removed.|
|--interactive||Equivalent to --interactive=always|