RPAOneDrive
Delete an item from the drive
Delete an item from the drive
Permanently removes a file or folder from OneDrive.
Options
OneDrive account
Select the OneDrive Login or Connection action set up in the flow.
Path of the item (file or folder) to be deleted
Enter the path of the file or folder from the root of the drive, for example Documents/report.pdf.
Returns
Javascript code
js
actions["action-id"].success // indicates if the item was deleted successfully (Boolean)
Field selection
- success — indicates if the item was deleted successfully (Boolean)
Rules and Conditions
- The OneDrive account and Path of the item (file or folder) to be deleted fields are required.
- When a folder is deleted, all its content is deleted too.
- If Microsoft Graph rejects the operation (item not found, insufficient permission, etc.), the action fails with the error message returned by the API.