Filezilla is taking forever to delete a nested directory structure from my website. Why does it have to change into each sub directory and delete files instead of just removing the whole top most directory in one go? Is removing a file the only supported command in the FTP RFC and does recursive directory removal have to be implemented by the client?
Description. rmdir( s , folder ) removes the specified folder from the current folder on the SFTP or FTP server associated with s .
You can delete files several different ways from your server. You can connect with an FTP program like FileZilla and delete files, or you can Use your cPanel File Manager. Below are the steps to delete a file from your server using File Manager and FTP.
Use the rmdir command to remove the directory, specified by the Directory parameter, from the system. The directory must be empty (it can contain only .
If you're using the Windows command-line ftp client, then you will need to use mdelete to delete multiple files, as delete will only delete a single file. Edit: Answering the additional questions in the comments. Then you could run this as a single step with the -s parameter.
The FTP RFC (or the Extensions to FTP RFC) does not define any command to recursively delete a directory. You only have the DELE command, defined in section 4.1.3 to delete a file and the way to delete an entire tree using FTP is to recursively delete files and folders (RMD), one by one.
Well, unfortunately yes, as per RFC 959 and a more friendly list
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With