Delete a file or folder from a SharePoint document library or OneDrive
Delete a file or folder from a SharePoint document library or OneDrive. A folder is deleted with all its contents. Everything goes to the site recycle bin.
SharePoint site the document library belongs to, or ‘me’ for the user’s own OneDrive.
drive
string or SelectItem
No
-
Document library (drive) the file lives in. Not needed when file is a full SharePoint link.
file
string
Yes
-
The file or folder to operate on: a path inside the library, e.g. ‘Creative Ads/banner.png’, a full SharePoint link, or an item id from a previous node.