Skip to content

Permanent Delete Document

DELETE
/api/writing/documents/{document_id}/permanent

πŸ’₯ Permanently delete a trashed document β€” unlinks the .docx, strips ChromaDB vectors, deletes the WorldSpell profile, drops the SQLite row.

Refuses to operate on active rows: the author must move the doc to the Trash first. That keeps a single one-click delete from annihilating the wrong chapter.

document_id
required
Document Id

Document ID

string

Document ID

Successful Response

Response Permanent Delete Document Api Writing Documents Document Id Permanent Delete
object
key
additional properties
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object