Knowledge base
1000 FAQs, 500 tutorials and instructional videos. Here, there are only solutions!
Delete a folder/file via SSH
Update 06/05/2026
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 using an FTP software/client or the Web FTP in the Manager.
SSH command to delete a folder/file
To delete a file or directory, you need to use the rm command.
To delete the Data.php and Data.txt files, for example, you need to run the following command:
rm Data.php Data.txtTo delete a directory, you must first delete its contents and then use the following command:
rmdir Folder/To delete all files in HTML format, run the following command:
rm *.htmlLink to this FAQ: https://faq.infomaniak.com/2032
Has this FAQ been helpful?