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

Productivity activities

Last updated Mar 13, 2026

DeleteItem

Deletes a specified file or folder.

Namespace: UiPath.Gsuite.Activities.API

Assembly: UiPath.Gsuite.Activities.API (in UiPath.Gsuite.Activities.API.dll)

Overloads

OverloadDescription
DeleteItem(IDriveItem)Deletes a specified file or folder.
DeleteItem(String)Deletes a specified file or folder.

DeleteItem(IDriveItem)

Deletes a specified file or folder.

public void DeleteItem(
	IDriveItem item
)
public void DeleteItem(
	IDriveItem item
)

item IDriveItem : The file or folder to delete.

DeleteItem(String)

Deletes a specified file or folder.

public void DeleteItem(
	string urlOrId
)
public void DeleteItem(
	string urlOrId
)

urlOrId String : The url or id of the file or folder to delete.

  • Overloads
  • DeleteItem(IDriveItem)
  • DeleteItem(String)

Was this page helpful?

Connect

Need help? Support

Want to learn? UiPath Academy

Have questions? UiPath Forum

Stay updated