SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Folder → Delete

AI-generated

Summary

Removes an empty folder from the configured SMB share using smbclient. For each input item, it runs the folder removal and returns the path with a removed: true status; the removal fails if the folder is not empty or the SMB command encounters an error.

Inputs

  • Smbclient Path — Path to the smbclient executable; defaults to smbclient.
  • Directory (required) — Remote folder path to remove. The UI declares a default of /, but this field is hidden for the Delete operation, so the handler receives its fallback empty string unless a value is otherwise supplied.
  • SMB2 credentials (required) — Credentials for the SMB server and share.

Output shape

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

Uses smbclient's rmdir command, which removes an empty folder. Command errors are raised as node operation errors; successful output does not include command output.

Links

Discussion