Send File to Recycle Bin

This Automation Manager object sends the selected file to the recycle bin.

This object is designed to work with local files only, and not with files located on network shares.

Privileges

Normal

Input Parameters

Name Type Required Description
File Path String Yes This is the full path and file name to be sent to the recycle bin.

This accepts wildcards, so the format can be entered as one of the following:
  • "c:\temp\*.*"
  • "c:\temp\file.txt"
  • "c:\temp\file.*"

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.
Result String String Object execution error details.

Example Input Parameters

Name Type Required Example
File Path String Yes C:\temp\*.*