I have used below code to purge document from couchbase lite. After purge, Response for the http://localhost:3699/db/PQ0001
is {"status":404,"error":"not_found","reason":"missing"}
that mean document has been removed from the db. But When I used http://localhost:PORT/db/_all_docs
, I can see doc id PQ0001
in the response. Is it the expected behaviour?
Document document = this.Database.GetDocument(documentId);
if (document != null)
{
document.Purge();
}