Collections > Delete a collection
The DELETE endpoint permanently removes collections and all their objects from Tallyfy Answers…
This endpoint permanently removes a specific object from a Tallyfy Answers collection using its unique identifier. Once deleted, you can’t recover an object.
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 can’t be undone. There’s no “trash” or “recycle bin” for deleted objects.
Instead of deleting objects, consider these alternatives:
Collections > Delete a collection
Collections > Get a collection
Records marked as deleted but retained in database, unlike hard deletion which permanently removes data ↩