Delete Folder
Last updated
Last updated
The Delete Folder action in the Avo Assure is found under the @Generic Element is used to delete the folder located at the path specified in the input and store the result in an output variable.
Input: <folder path>;<folder name>;<index>
Index: An index is a number that shows the position of an item in a list, allowing user to find or change that item.
Note: Index value start from “0”.
Output: <Dynamic Variable>(Optional);<Dynamic Variable>(Optional)
A user needs to delete last month’s “Logs” folder to make a space for new data. Instead of going into the system manually to delete it, they use the “delete folder” action during testing. By specifying the path where the folder is located, like C:\Data Folder, the tool automatically deletes it.
Input: Provide the input values as below:
C:\Data Folder;8
In above input we are providing file path as C:\Data Folder and index of folder as 8 separated by Semicolon (;).
Note: Provide the correct index value of the given folder.
Expected Result: It should delete the “Data folder” at the specified index in the given location.
Output: The Delete Folder action delete the folder and save its result in the {result} output variable as “True”. This output can be used for display.