Friday, May 25, 2012

Linux Delete Folder Recursively

How do I delete folder recursively under Linux operating systems?

The rm command remove files or directories recursively and syntax is as follows:
 
rm -r dirName
rm -r folderName
rm -rf folderName
In this example, recursively delete data folder:
 
rm -rf /home/vivek/data

No comments:

Post a Comment