Collections > Delete a collection
The DELETE endpoint permanently removes collections and all their objects from Tallyfy Answers with no recovery option and requires careful consideration of alternatives like data export or backup before execution.
This endpoint allows you to permanently remove a specific object from a Tallyfy Answers 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/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
Records marked as deleted but retained in database, unlike hard deletion which permanently removes data ↩