Delete File
Last updated
Last updated
The Delete File action in the Avo Assure is found under the @Generic Element is used to delete the file located at the path specified in the input and store the result in an output variable.
Input: <file_path>;<file_name.extn>
Note: Supported file formats are .txt. .xlsx, .xls, .pdf, .gif, .doc, .xml
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
A user wants to download the employee attendance reports each month and saves them temporarily on their computer. Once they’ve reviewed and saved the information in their main records, they don’t need these temporary files anymore. Using the “Delete File” action in Avo Assure, they can automatically delete these reports from a specified folder to keep their computer organized and prevent confusion with old files.
Input: Provide the input values as below:
C:\Data Folder;Reports_2023.xls
Expected Result: It should delete the “Reports_2023.xls” file from the given location.
Output: The Delete Folder action delete the folder(“Reports_2023.xls”) and save its result in the {result} output variable as “True”. This output can be used for display or other purposes.