Delete Entity
DELETE /api/writing/entities/{entity_name}
DELETE
/api/writing/entities/{entity_name}
ποΈ Delete an entity
Removes an entity from the system. Optionally removes all references to the entity from documents.
Path Parameters:
entity_name: Name of the entity to delete
Query Parameters:
remove_from_documents: If true, removes entity mentions from all docs
Returns:
- EntityDeleteResponse with deletion details
Raises:
HTTPException 500: If deletion fails
Example:
DELETE /api/writing/entities/Boromir?remove_from_documents=trueParameters
Section titled β Parameters βPath Parameters
Section titled βPath Parameters β entity_name
required
Entity Name
string
Query Parameters
Section titled βQuery Parameters β remove_from_documents
Remove From Documents
Remove entity mentions from documents
boolean
Remove entity mentions from documents
Responses
Section titled β Responses βSuccessful Response
EntityDeleteResponse
Response from deleting an entity.
Fields: status: Operation status entity_name: Entity that was deleted documents_updated: Number of documents with removed references message: Status message
Used By: - DELETE /api/writing/entities/{name} endpoint response
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context