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 *