How can I remove a non-empty directory with smbclient?
You probably cannot do this with smbclient
. If you have superuser (a.k.a. root) access right on the local computer, you can mount remote directory using smbmount
and then delete files from it using rm -Rf
.