rm source_file ...The rm command is not reversible. The shell doesn't provide a Trash from where the deleted files and directories can be restored.
$ rm file1
$ rm folder1/*It may complain that there are subdirectories in folder1: "
rm: folder1/folder11: is a directory
".$ rm folder1/.*It may show this warning: "
rm: "." and ".." may not be removed
".$ rm -r folder1
-r, -R, --recursive Remove directories and their contents recursively. -f, --force Ignore nonexistent files and arguments, never prompt. -i Prompt before every removal. -I Prompt once before removing more than three files, or when removing recursively. -v, --verbose Explain what is being done. --preserve-root Do not remove '/' (default). --no-preserve-root Do not treat '/' specially. -d, --dir Remove empty directories.