SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Remove Directory

AI-generated

Summary

Remove a directory from an SMB share using the smbclient CLI, specifying the directory path to delete.

Inputs

  • Smbclient Path — Custom file system path to the smbclient binary if it is not in the system PATH; defaults to 'smbclient'.
  • Directory (required) — The path of the directory on the SMB share to remove.

Output shape

a single JSON object per input item, confirming the removed directory and a removal flag

Returns { directory: string, removed: true } on successful removal. Supports processing multiple items sequentially. Throws an error if the removal fails.

Links

Discussion