Actions26
- File Actions
- Folder Actions
File → Remove Directory
AI-generatedSummary
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
smbclientexecutable; defaults tosmbclienton 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.