We’ve discussed creating files and directories, to remove them use the rm command.
rm
There are variations of this command, for example, if you want to delete any directory use rm followed by -r.
-r