I may be missing something obvious here, but I'm trying to use the Delete FTP Directory function in Power Automate Desktop, and when it tries to delete a directory that has files or other folders inside of it, it throws the error " Can't delete directory [DirectoryName]. Make sure that the directory exists and that you have sufficient permissions to delete it." I've made sure that I am able to delete the directory, as when I use FileZilla to delete the directory, it works just fine, using the same login credentials. I'm also sure that the directory location is correct, as I'm able to place files into the directory, just not delete the directory. Also, if I were to delete all items within that directory using FileZilla, the flow would run successfully and delete the directory just fine.
Not sure if it matters, but this is all on sftp.
Is there a better way to delete directories, that would allow me to delete everything within the directory as well, or does this have to do with how the FTP site is set up?