> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/sharepoint/delete-item-in-list.md).

# Delete Item In List

Deletes the SharePoint list item that matches each asset. The match compares an asset field with a list column, ignoring case. Deleted items are removed with a Graph delete request, so confirm your workflow query before activating it.

### Before you begin

* A Microsoft Entra (Azure AD) app registration: its tenant ID, client ID and client secret. The job signs in with the client credentials flow against Microsoft Graph.
* A SharePoint site and list reachable through that app.
* Connection values can be saved once as defaults. See [Action Center Settings](broken://pages/cc784ab7cf7754a10fa01950ebaf27cc37a8a8df), group **SharePoint**, one tab per job.
* Accepted asset types: device, user.
* Required columns: **Hostname** for devices, **Email** for users. Assets without a value for the required column are ignored.

### Settings

| Setting                 | Type             | Required | Default    | Description                                                                                             |
| ----------------------- | ---------------- | -------- | ---------- | ------------------------------------------------------------------------------------------------------- |
| Tenant ID               | Text             | Yes      | None       | Microsoft Entra (Azure AD) tenant ID.                                                                   |
| Client ID               | Text             | Yes      | None       | Application (client) ID from Azure.                                                                     |
| Client Secret           | Text (sensitive) | Yes      | None       | Client secret value from Azure. Masked after saving.                                                    |
| SharePoint Domain       | Text             | Yes      | None       | Your SharePoint domain, for example `example-my.sharepoint.com`.                                        |
| Folder Type             | Text             | No       | `personal` | Folder type in SharePoint, for example `personal` or `marketing`.                                       |
| Site Address            | Text             | Yes      | None       | Site address path, for example `jdoe_example_com`.                                                      |
| List Name               | Text             | Yes      | None       | Name of the SharePoint list.                                                                            |
| Timeout                 | Integer          | No       | 30         | Request timeout in seconds. This field has no label in the serializer, so the console name may differ.  |
| Match Field             | Text             | No       | `Hostname` | Asset field to match against SharePoint items, for example `Hostname` for devices or `Email` for users. |
| SharePoint Match Column | Text             | No       | `Hostname` | SharePoint column name to match against, for example `Title`, `Hostname` or `Email`.                    |

### How it works

The job requests a Microsoft Graph token, resolves the site from **SharePoint Domain**, **Folder Type** and **Site Address**, then resolves the list from **List Name**.

For each asset the job reads the **Match Field**. Assets with no value are skipped and counted as failed. It then scans the list items (following paging links) for the first item whose **SharePoint Match Column** equals the value, ignoring case. If no item is found the asset is logged as not found and skipped.

A matching item is deleted with its own request. Failures are logged per asset and do not stop the job.

At the end the job logs success, not found, failed and total counts. It reports success when at least one item was deleted.

### Example

```
Tenant ID:          00000000-0000-0000-0000-000000000000
Client ID:          YOUR_CLIENT_ID
Client Secret:      YOUR_CLIENT_SECRET
SharePoint Domain:  example.sharepoint.com
Folder Type:        sites
Site Address:       it-assets
List Name:          Assets
Match Field:       Email
SharePoint Match Column:  Email
```

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/a6adb736a528d63d9d04b466e73ca8bd9446ec02">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save default values for this job.</td><td><a href="broken://pages/cc784ab7cf7754a10fa01950ebaf27cc37a8a8df">Broken link</a></td></tr><tr><td><strong>Update Item In List</strong></td><td>Change matching items instead of deleting them.</td><td><a href="broken://pages/38070d18a541ae3c5675cb61fea9e58f97018c54">Broken link</a></td></tr></tbody></table>

{% hint style="info" %}
Available starting from version 6.3.0.
{% endhint %}
