Delete Folder

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

Syntax

Input value: <folder path>;<folder name>;<index>

Argument
Description

<folder path>

(Required)

Specify the folder location where the folder to be deleted is located.

<folder name> (Required)

Provide name of the folder to be deleted.

<index> (Required)

Index value to identify which folder to delete in case multiple folders with the same base name exist. Note: Index value start from “0”.

Output value:

Argument
Description

<Dynamic Variable>(Optional);<Dynamic Variable>(Optional)

This variable stores the status as true or false

Example

Delete a folder by name and index at the specified path The Delete Folder action removes a folder with the specified name and index from the given path (e.g., C:\sam;Updated file;0). The action status is saved in the {Status} variable with the following possible values:

  • True if the folder is deleted successfully

  • False –if the folder does not exist or deletion fails

Last updated

Was this helpful?