Delete Collection Api
Delete a collection and all its data.
This function ensures data consistency by attempting physical file deletion before database deletion. If physical deletion fails, the operation is aborted to prevent inconsistent state.
Args: collection_name: Name of the collection to delete
Returns: Deletion result with status, affected documents, and cleanup information
Raises: HTTPException: If physical deletion fails (prevents database deletion)
Path parameters
Response
Successful Response
Changes
Changed in 1 of the 4 revisions of this API.1
- ●
added the new
cancelledenum value to theaffected_documents/items/statusresponse property for the response status200response-property-enum-value-added
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●