Bulk Delete Attachments
bulk_delete_attachments_companyDelete multiple attachments from an asset in a single API call. Provide company_id and asset_id, then specify attachment IDs or use select_all to permanently remove them.
Instructions
Deletes multiple attachments in a single request. Confirm the target id with the matching show or list tool before calling. company_id defaults to the value set by procore_set_config when omitted, and asset_id must identify an existing parent record — resolve it with the matching list tool first. Permanently removes the attachment. This cannot be undone, and a repeat call returns 404. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: company_id, asset_id. Procore API (v2.0): Core > Assets. Endpoint: DELETE /rest/v2.0/companies/{company_id}/assets/{asset_id}/attachments/bulk_delete
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asset_id | Yes | URL path parameter — unique identifier for the Asset | |
| company_id | Yes | URL path parameter — unique identifier for the company. | |
| select_all | No | JSON request body field — when true, deletes all attachments for the asset. Use excluded_attachment_ids to specify exceptions. When false (default), attachment_ids must be provided. | |
| attachment_ids | No | JSON request body field — list of attachment IDs to delete. Required when select_all is false. | |
| Accept-Language | No | JSON request body field — locale for localized response messages (for example: en, fr-FR, pseudo) | |
| excluded_attachment_ids | No | JSON request body field — list of attachment IDs to exclude from deletion. Only applicable when select_all is true. |