UiPath Documentation
activities
latest
false
Productivity activities

DeleteItem

Deletes a file or folder.

Deletes a file or folder.

Namespace: UiPath.MicrosoftOffice365.Activities.Api

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

Overloads​

OverloadDescription
DeleteItem(IDriveItem)Deletes a file or folder from OneDrive or SharePoint.
DeleteItem(String)Deletes a file or folder at the specified location in OneDrive or SharePoint by Url.
DeleteItem(String, String, String)Deletes a file or folder at the specified location in OneDrive or SharePoint by ID.

DeleteItem(IDriveItem)​

Deletes a file or folder from OneDrive or SharePoint.

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

item IDriveItem : The file or folder to delete.

DeleteItem(String)​

Deletes a file or folder at the specified location in OneDrive or SharePoint by Url.

void DeleteItem(
	string itemUrl
)
void DeleteItem(
	string itemUrl
)

itemUrl String : The Url of the file or folder of interest.

DeleteItem(String, String, String)​

Deletes a file or folder at the specified location in OneDrive or SharePoint by ID.

void DeleteItem(
	string itemId,
	string siteUrl,
	string documentLibraryName
)
void DeleteItem(
	string itemId,
	string siteUrl,
	string documentLibraryName
)

itemId String : The ID of the file or folder of interest.

siteUrl String : The Url of a SharePoint site.

documentLibraryName String : The document library within the specified SharePoint site.

Was this page helpful?

Connect

Need help? Support(opens in new window)

Want to learn? UiPath Academy(opens in new window)

Have questions? UiPath Forum(opens in new window)

Stay updated