Saturday 26 June 2010

SSH Delete all files and folders in a directory

To delete all the files and folder in a directory in SSH, go in that directory, then use that command:

rm -r -f YourDirectory


rm = remove / delete
-r = recursively deletes the directory and all files in it, including subdirectories
-f = will not ask for confirmation before deleting

(Source: Dusty Reagan)

No comments:

Post a Comment