Delete List Item
sharepoint.delete_list_item
ActionFiles & storageconnection required
Calls the SharePoint API with the connection's credentials.
Delete one item from a list.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- OAuth 2.0
- Providers
- SharePoint
- Secret shape
- {"client_id": "…", "client_secret": "…", "refresh_token": "…"} with the Sites.ReadWrite.All delegated scope
- Config it needs
- tenant, site_id
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 3 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
site_id The site id that holds the list, as 'hostname,siteCollectionId,siteId'. Use sharepoint.get_site or sharepoint.search_sites to find it. | string | Yes | — | — | — |
list_id The list's id or its name, both of which Graph accepts in the path. | string | Yes | — | — | — |
item_id The list item id to delete. | string | Yes | — | — | — |
Output
One shape.
result
| Field | Type | Example |
|---|---|---|
deleted True when Graph accepted the delete. | boolean | — |
item_id The list item id that was deleted. | string | — |
{
"deleted": false,
"item_id": ""
}See Delete List Item run in a workflow.
In a technical demo we add the SharePoint connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.