Delete drive item
BetaChanges data
Deletes a file or folder from OneDrive or SharePoint.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Microsoft Graph connection the step signs in with. |
| Drive of | "user" or "group" or "site" or "drive" |
| OwnerRequired | The person's id or sign-in address, the group's id, the site's id or the drive's id — whichever Drive of names. |
| File or folderRequired | Its id, or its path from the drive's root starting with /. A folder goes with everything in it, to the recycle bin. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `microsoft-graph`) |
driveOf | "user" or "group" or "site" or "drive", by default "user" |
owner | text |
item | text |
Output
| Field | Type |
|---|---|
deletedDeleted by this run | boolean |
alreadyGoneIt was already gone | boolean |
itemFile or folder | string |
Sample output, and the expression for each field
- alreadyGonefalse
- deletedtrue
- item"01ABC"
Errors
When a step of this node stops a run, the run page shows a code. Look it up:
Example step
The step as a flow file holds it. Replace each value in <…>.
{
"config": {
"connection": "<connection id>",
"driveOf": "user",
"item": "<file or folder>",
"owner": "<owner>"
},
"label": "Delete drive item",
"type": "graph.deleteDriveItem",
"version": 1
}