rm

rm removes one or more files from the filesystem.

rm file1 [file2 ..]
cp options meaning
-r recursivec copy (copy the full directory including files and sub-directories)
-i prompt before overwriting
-f do not prompt before overwriting

By default, rm removes only files, but the -r option accepts directories as arguments.

⚠️ beware of the use of rm -fr which can be (very) dangerous.