Delete SharePoint item attachment
Remove a file attached to a SharePoint list item (needs a SharePoint site session).
Command in the Microsoft 365 toolkit · id ooa.microsoft365/delete_attachment · 4 inputs (3 required), no outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Session | String | No | sharepoint | A SharePoint site signed in to with Sign in to SharePoint site (also on premises); when given, access_token and site are not used (G3). |
| List | String | Yes | List id or display name. | |
| Item ID | String | Yes | Item id. | |
| File name | String | Yes | The attachment's name. |