Collections > Delete a collection
The DELETE endpoint permanently removes collections and their objects through a straightforward API call while offering best practices and alternatives to mitigate risks of irreversible data loss.
This endpoint allows you to permanently remove a specific object from a collection using its unique identifier. Once deleted, an object cannot be recovered.
DELETE /v1/collections/{collection_name}/objects/{object_id}
Parameter | Type | Required | Description |
---|---|---|---|
collection_name | path | Yes | Name of the collection containing the object |
object_id | path | Yes | Unique identifier of the object to delete |
A successful deletion returns a 200 OK
status code with a confirmation response:
{ "id": "product-123", "status": "deleted"}
Status | Description |
---|---|
404 | Object or collection not found |
400 | Invalid object ID format |
403 | Permission denied (if applicable) |
curl -X DELETE https://go.tallyfy.com/api/v1/collections/products/objects/product-123 \ -H "X-Answers-API-Key: your_api_key"
Permanent Action
Object deletion is permanent and cannot be undone. There is no “trash” or “recycle bin” for deleted objects.
Instead of actually deleting objects, consider these alternatives:
Collections > Delete a collection
Objects > Index a single object
Collections > Get a collection