cURL
curl --request DELETE \ --url https://api.fieldwise.ai/api/v1/documents/external/{external_id} \ --header 'X-API-Key: <api-key>'
{ "data": { "deleted_count": 123, "deleted_ids": [ 123 ] }, "success": true, "error": { "error_code": "RESOURCE_NOT_FOUND", "message": "Resource not found" }, "meta": { "timestamp": "2023-11-07T05:31:56Z", "version": "1.0" } }
Delete document(s) by external ID with version control.
Returns the count and IDs of deleted documents.
If True, delete only the latest version. If False, delete all versions with this external_id.
Successful Response
Response data
Show child attributes
Schema for API error responses.
{ "error_code": "RESOURCE_NOT_FOUND", "message": "Resource not found"}
Metadata for API responses