Knowledge base
1000 FAQs, 500 tutorials and explanatory videos. Here, there are only solutions!
Delete folder/file by SSH
This guide explains how to erase a folder or file in SSH, which can be useful when it is impossible to delete a file with a FTP software/client or FTP Manager.
SSH command to delete folder/file
Infomaniak accepts no liability for any loss of data related to these instructions.
To erase a file or directory, it is necessary to use the command rm
.
To delete files NomDuFichier.php
and NomDuFichier.txt
, e.g. execute the following command:
rm NomDuFichier.php NomDuFichier.txt
To delete a directory, first delete its contents and then use the following command:
rmdir NomDuDossier/
To delete all files in html format, you must execute the following command:
rm *.html
- Other useful orders (external link)
Link to this FAQ: