Delete a file from any library using its file ID. Use this API when you need to remove files programmatically as part of cleanup, lifecycle management, or content restructuring workflows.
Path parameters
Parameter
Description
id
any
required
File Id
Query parameters
Parameter
Description
library
string
optional
One of sharepoint, msteams, google, onedrive, box, dropbox, cloudfiles, s3, azure, hubspot, azurefiles, sftp
driveId
string
optional
Drive Id. Required when library is sharepoint or msteams.
Header parameters
Parameter
Description
Authorization
string
optional
Replace the API_Key placeholder with your actual API key.