How To's

Remove files and folders in Linux

4,173 views · 0 found this helpful

Was this helpful?

Problem

Removing a file or folder in linux.

tl;dr

rm filename
rm foldername -r

Solution

This will work with almost any linux flavour.

rm filename

This will remove a file.

 rm foldername ­r 

This will remove an entire folder. ­r is to tell it to remove files recursively.

  • Updated

← All articles

Still stuck?

Our engineers answer tickets directly, 24/7.