SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → Remove Directory

AI-generated

Summary

Removes the specified directory from the SMB share using the smbclient command-line tool. The directory must be empty for the SMB rmdir command to succeed.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient from PATH.
  • Directory — SMB directory path to remove; defaults to /.
  • SMB2 credentials (required) — Credentials for the SMB server and share, configured on the node.

Output shape

One item per input item, each with a JSON object containing directory and removed: true.

The node runs the remove command for each input item. If the command fails, the operation raises an error instead of returning a success item.

Links

Discussion