SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

Delete File

AI-generated

Summary

Delete a file on the connected SMB share at the specified remote path.

Inputs

  • Smbclient Path — Custom path to the smbclient binary if it is not available in the system PATH (optional; default is 'smbclient').
  • Remote Path (required) — Absolute path of the file on the SMB share to delete.

Output shape

a single JSON object with the deleted remote path and a deletion success flag

Each input item results in an output item confirming deletion with fields: { json: { remotePath: string; deleted: true } }. Throws an error if deletion fails.

Examples

Example 1: Delete a file at specified SMB share path

Set 'Remote Path' to the target file path; optionally customize 'Smbclient Path'. Execute node to remove file from SMB.

Links

Discussion