Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Remove documents with delete_document()
from surfacedocs import SurfaceDocs, DocumentNotFoundError docs = SurfaceDocs() docs.delete_document("doc_abc123")
document_id
str
None
DocumentNotFoundError
from surfacedocs import SurfaceDocs docs = SurfaceDocs() # Save result = docs.save_raw( title="Temp Report", blocks=[{"type": "paragraph", "content": "This is temporary."}], ) # Read doc = docs.get_document(result.id) print(doc.title) # "Temp Report" # Delete docs.delete_document(result.id)