How to Delete Folders via SSH

To delete a whole folder and its content recursively, you can follow below steps:

Step 1: Open SSH and Go to the path where your folder are there

Step 2: Now Go to the Window -> New Terminal in Current Directory

Step 3: After opening terminal you need to write command rm -rf foldername/

rm -rf foldername/

To delete all files/folders in the current directory, without deleting the directory itself, you would need to use:

rm -rf *

Note* : If you don’t have terminal access then you need to contact your hosting provide or you can comments if my help needed.

Related Posts

Divyesh Patel

I'm Divyesh Patel, Web & App developer. I want to make things that make a difference. With every line of code, i strive to make the web a beautiful place.

Leave a Reply