Delete files from a container in an Azure Blob Storage.

Parameters:

Parameters:
See dedicated page for more information.
OneDriveDeleteFiles removes a single item from OneDrive or a SharePoint document library by its File ID (the Graph driveItem.id).
Use it to clean up temporary exports, remove stale reports, or chain after a filter to bulk-delete many items. The action calls Microsoft Graph’s DELETE /drives/{drive-id}/items/{item-id}. By default Microsoft moves items to the drive’s Recycle Bin; permanent purge is outside the scope of this action.
Tip: Pair this with OneDriveListFiles to discover
File IDs and with a filter to decide what to delete.
You need the same Azure application and permissions used for the upload and list actions:
An Azure App Registration (client) with application permissions on Microsoft Graph:
Files.ReadWrite.All (or narrower if your tenant allows it)Sites.ReadWrite.All if you target SharePoint sitesAdmin consent granted.
Your app’s Application (client) ID.
An Azure Unlock Key produced by the Azure Unlock action (uses your client ID, tenant ID and client secret to mint the key).
Upstream, use OneDriveListFiles (optionally with a search prefix) to get the id column for the items you want to remove.
Feed each row (or a selected row) into OneDriveDeleteFiles:
File ID to delete = the file’s id value.Azure Application (client) ID = your Azure Application (client) ID.Azure Unlock Key = the Azure Unlock Key.The action issues a Graph DELETE for that item.
Check the Log tab for a 204 No Content success. The Data/Records tabs remain empty by design.
File ID to delete to the item’s id (from a prior List or your logs).Azure Application (client) ID and Azure Unlock Key.204 in the log..tmp files under /exports”)prefixFolder=/exports, idSearch=.tmp, recurse on if needed.id.idErrorManagement=continue with status ERROR so one failure doesn’t stop the batch.id).driveItem.id.id; always resolve with ListFiles if unsure.“Authorization required, but no authorization protocol specified”
The Azure Unlock Key is missing/expired. Re-run Azure Unlock and re-select the fresh key in Azure Unlock Key.
401 / 403 (Unauthorized / Forbidden)
The app lacks permissions or admin consent. Ensure Files.ReadWrite.All (and Sites.ReadWrite.All for SharePoint) application permissions with tenant-wide consent.
404 (Item not found)
The id belongs to another drive (e.g., a different site or user) or is stale. List the exact drive/folder again and pick the current id.
429 / 5xx (throttling / transient)
Add retries: Optional: extra parameters for cURL = --retry 5 --retry-delay 2 --retry-all-errors and keep Number of retries on connection error > 0.
Nothing in Data/Records
Expected. This action outputs no rows; the Log is the source of truth.
