The Samba-Bugzilla – Bug 4299
performing a delete recursive operation not possible
Last modified: 2014-03-30 19:00:23 UTC
AFAICS it is not possible to delete directories recursive from withing smbclient.
If a directory named dir1 contains file(s) then 'rmdir dir1' won't work of course (NT_STATUS_DIRECTORY_NOT_EMPTY). I can't find a way to run something like 'rm -rf dir1' from within smbclient. Would be nice to have something like 'recurse' available for rm/rmdir as well so it's possible to delete non-empty directories from within smbclient.
thx && regards,