activities
latest
false
UiPath logo, featuring letters U and I in white

Workflow activities

Last updated Feb 19, 2026

DeleteFileOrFolder

Deletes a specified file or folder.

Definition

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

DeleteFileOrFolder(ILocalResource)

void DeleteFileOrFolder(
    ILocalResource resourceFile
)
void DeleteFileOrFolder(
    ILocalResource resourceFile
)

resourceFile ILocalResource : Enter a file or folder path that you want to delete.

  • Definition
  • DeleteFileOrFolder(ILocalResource)

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo
Trust and Security
© 2005-2026 UiPath. All rights reserved.