Search code examples
linuxshellsamba

Deleting Non-empty Directory with smbclient


How can I remove a non-empty directory with smbclient?


Solution

  • 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.