How to delete all files & folders recursively in Linux

Linux OS Topics
Post Reply
User avatar
Saman
Lieutenant Colonel
Lieutenant Colonel
Posts: 828
Joined: Fri Jul 31, 2009 10:32 pm
Location: Mount Lavinia

How to delete all files & folders recursively in Linux

Post by Saman » Thu May 20, 2010 5:16 pm

You can use rm -Rf as below.

Code: Select all

rm -Rf /home/some/directory/*
Post Reply

Return to “Linux”