Windows Fileshare (SMB2) icon

Windows Fileshare (SMB2)

Access Windows network file shares via SMB2 protocol

Actions9

Directory → Delete

AI-generated

Summary

Delete the specified directory from the configured SMB2 share. The operation uses the directory’s share-relative path and returns a success record after the SMB rmdir call completes.

Inputs

  • Directory Path (required) — Path to the directory relative to the share root. The implementation converts forward slashes to backslashes and removes leading backslashes.
  • Timeout (Ms) — Timeout for the SMB operation in milliseconds; defaults to 30000 ms. The node also requires the Windows Network API credentials for the share connection.

Output shape

One output item per input item, each with a JSON record containing directoryPath, deleted: true, and success: true on success.

The returned path is normalized. If deletion fails, the node raises an operation error; with Continue On Fail enabled, it returns an item containing an error message instead. The source calls SMB rmdir; it does not establish whether non-empty directories can be deleted.

Links

Discussion