how to delete directories in terminal code example Example: how to delete files in linux rm <file> .. rm -r <file> .. r stands for recursive