1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Deleting a directory/file by SSH unable to delete by FTP
This guide explains how to delete a folder or file under SSH, which can be helpful when it is impossible to delete a file with an FTP program or ourFTP Manager.
SSH command for deleting a folder/file
We decline all responsibility in the event of lost data related to these instructions.
To delete a file or a directory, use the command, rm.
To delete the files, FileName.php and FileName.txt, for example, you must execute the following command:
rm FileName.php FileName.txt
To delete a directory, you must first delete its contents and then use the following command:
To delete all files in html format, you must execute the following command:
Find out more
- Creating an FTP account with SSH access: https://faq.infomaniak.com/1982
- Logging in under SSH: https://faq.infomaniak.com/1941
- Other useful commands (external link)
Link to this FAQ: