SMB2 using smbclient icon

SMB2 using smbclient

Interact with SMB shares using the smbclient CLI

File → Delete

AI-generated

Summary

Delete a file from an SMB share using the smbclient CLI.

Inputs

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

Output shape

A single JSON object per input item indicating the remote path and a boolean 'deleted' confirming successful deletion.

The operation processes each input item individually, returning a JSON response with the deleted file's path and a confirmation flag. Errors during deletion throw an operation error.

Examples

Example 1: Delete file '/folder/file.txt' from SMB share

Set 'Remote Path' to '/folder/file.txt' and optionally specify 'Smbclient Path' if the smbclient binary is at a custom location.

Links

Discussion