Skip to content

Trash

Everything that is deleted remains recoverable for 15 days — entire databases and loose documents.

Updated on Aug 10, 2026

Deletion is not permanent at the moment: removed documents and databases get a snapshot in the trash and remain recoverable for 15 days. Restoring re-indexes the content (re-embeds — charged as ingestion); after the deadline, purging is automatic and permanent.

GEThttps://api.hinow.ai/v1/rag/trashBearer

Lists items in the scope's trash.

Respostas

200Items with type, name, and date
{
  "items": [
    {
      "id": "3f28a80bcc354153974fc21a5dff4846",
      "kind": "document",
      "rag_id": "1d9cf4ae...",
      "document_id": "56ef03f5...",
      "name": "entrega.md",
      "deleted_at": "2026-08-10T21:24:12Z"
    }
  ],
  "retention_days": 15
}
POSThttps://api.hinow.ai/v1/rag/trash/{id}/restoreBearer

Restores an item. Database restores the record and all documents that were removed with it; loose document requires the database to still exist.

Parâmetros

  • idstring· pathobrigatório

Respostas

200Restored (re-embedded)
{
  "restored": "document",
  "document_id": "56ef03f5...",
  "embed_tokens": 18
}
409The document's database no longer exists — restore the database first
DELETEhttps://api.hinow.ai/v1/rag/trash/{id}Bearer

Purges an item PERMANENTLY, without waiting 15 days.

Parâmetros

  • idstring· pathobrigatório

Respostas

200Purged
{ "deleted": true }
Was this page helpful?