The rm command removes filesystem entries. Command-line removal normally does not send items to a desktop trash folder, and rm has no built-in undo, so confirm every target before you run it.
Command Line · Lesson 13
rm (Remove)
Learn how to remove files and directories while checking targets and choosing safer rm options.