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

Workflow activities

Last updated Mar 4, 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?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated