SSH – delete files/folder

In order to to delete files via SSH you need to use -rm command.

To delete files:

rm nameFile1.txt nameFile2.txt

To delete a whole directory with its content:

rm -rf namefolder/

To delete all files in the current directory:

rm -rf  *

Posted in SSH

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.