ravendb/ravendb — Issue #453: Immortal orphaned document
Author: ArnoldZokas
Created: 2012-01-27 00:30:25+00:00
State: open

I am using RavenDB v1.0.573 in embedded mode in an ASP.NET MVC application.
Recently, I have deleted all documents from one of the collections using the client API and noticed one document was not properly deleted.

This document:

* **is** returned by `Query.ToArray()` call
* **is not** returned by `Query.Single(x => x.Id == docId)` call
* **is** displayed in Raven Studio "Summary" tab and "Documents" tab
* **is not** displayed in Raven Studio "Collections" tab

I have tried:

* Deleting it using `IDocumentSession.Delete(doc)` call
* Deleting it using `IDocumentStore.DatabaseCommands.Delete(docId etag)`
* Rebuilding solution
* Restarting VS and rebuilding solution
* `iisreset`
* Rebooting

... but this document just wont die.

I have a backup of the database (4KB) which will demonstrate this issue. If you would like me to email you a copy, let me know.