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 any responsibility in case of data loss related to these instructions.
To delete a file or a directory, you must use the rm
command.
To delete the files NomDuFichier.php
and NomDuFichier.txt
, you should for example execute the following command:
rm NomDuFichier.php NomDuFichier.txt
To delete a directory, you must first delete its contents and then use the following command:
rmdir NomDuDossier/
To delete all files in html format, you need to run the following command:
rm *.html
- Other useful commands (external link)
Link to this FAQ: