Skip to main content

Delete folder

Sophie avatar
Written by Sophie
Updated over a week ago

Definition and Usage

Delete an existing folder and its contents (including files and subfolders). This command permanently removes the specified folder along with all files and subfolders contained within it.


Parameter Values

Input parameters

Parameter

Description

Possible Values

Required

Options / Notes

Folder to delete

Please select the folder you wish to delete. Note that all files and subfolders within it will be deleted

File path

Yes

You can use the file selector or enter a path manually

Error handling

Parameter Name

Description

Throw error & stop

When an error occurs, the action will trigger an error and stop the execution of the entire app.

Retry command

If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process.

Ignore error & continue

When an error occurs, the action will be ignored, and the workflow will continue without interruption.

Variables produced

This action doesn't produce any variables.


Using Variables in Conditions

You can use variables in the folder path by clicking the {x} button next to the input field. This allows you to dynamically specify which folder to delete based on previously defined variables. For example, you might use a variable that contains a path constructed earlier in your workflow.


Notes

  • This operation permanently deletes the specified folder and all its contents. There is no "recycle bin" or recovery option within the RPA tool.

  • Ensure you have proper permissions to delete the specified folder.

  • The command will fail if the folder is currently in use by another process or if it doesn't exist.

  • Consider creating a backup of important data before using this command in production workflows.

  • If the folder contains read-only files or subfolders with special permissions, the deletion might fail depending on the user account permissions.

Did this answer your question?