SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

File → Remove Directory

AI-generated

Summary

Removes the specified directory from an SMB share using the smbclient CLI. The directory must be empty for the SMB rmdir command to succeed; the node processes each input item and returns a success record for each removal.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient on the system PATH.
  • Directory — SMB directory to remove; defaults to /.
  • SMB credentials (required) — Configure the required SMB2 credentials, including the host and share.

Output shape

One JSON item per input item, with directory and removed: true.

The node throws an operation error if the SMB command fails, including when the directory cannot be removed. It closes the client after processing.

Links

Discussion