Delete Folder

Delete Folder action under @Generic Element is used to delete the folder located at the path specified in the input and store the result in an output variable.

Syntax

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)

Usecase/Example

Scenario

To free up space for new data, the user needs to delete last month's "Logs" folder. Instead of manually removing it, they utilize the "delete folder" function during testing. By specifying the folder path, such as 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.

Last updated

Was this helpful?