Zoomed Image

AMSX Scripting Language - Command : trydelete

Summary

Attempt to delete a file, ignoring errors if it cannot be deleted

Description

Tries to delete the specified file but does not throw an error if the file does not exist or cannot be deleted (e.g. if it is locked). Use this for best-effort cleanup where failure is acceptable.

Parameters

ParameterDescription
cmdPath of the file to attempt to delete

Syntax


TryDelete "Path of the file to attempt to delete"

Return to the AMSX Command Reference