Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Delete a folder/file via SSH
This guide explains how to delete a folder or file via SSH, which can be particularly useful when it is impossible to delete a file with an FTP software/client or the FTP Manager.
SSH command to delete a folder/file
Infomaniak disclaims all responsibility in case of data loss related to these instructions.
To delete a file or directory, you need to use the rm command.
To delete the files Data.php and Data.txt, for example, you need to execute the following command:
rm Data.php Data.txtTo delete a directory, you first need to delete its contents and then use the following command:
rmdir Folder/To delete all files in html format, you need to execute the following command:
rm *.html- Other useful commands (external link)
Link to this FAQ: