Bulk Delete Attachments
bulk_delete_attachments_project_v2_0Delete multiple attachments from an asset in one call. Specify the asset ID and either a list of attachment IDs or select all to remove them permanently.
Instructions
Deletes multiple attachments in a single request. Confirm the target id with the matching show or list tool before calling. company_id and project_id default to the values 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, project_id, asset_id. Procore API (v2.0): Core > Assets. Endpoint: DELETE /rest/v2.0/companies/{company_id}/projects/{project_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. | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| 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. |