How can I remove/edit a document marked Raven-Read-Only?

303 views Asked by At

A document in our RavenDB database was accidentally deleted, and in an attempt to fix the issue a revision was renamed to the primary document and saved, keeping the MetaData.

{
"Raven-Document-Revision-Status": "Historical",
"Raven-Read-Only": "true",
"Raven-Document-Parent-Revision": ".../revisions/57"
}

The "Raven-Read-Only" attribute appears to prevent all writing and deleting of this document. Which is problematic for our application. Even from within the Studio there doesn't appear to be a way modify/delete this document. Am I overlooking something there? Or is there another way to modify this data, or at the very least delete it?

2

There are 2 answers

0
ashansky On

I was able to resolve this by turning off the versioning bundle. Once it was off I was able to delete the document.

4
Ayende Rahien On

You can do this by removing the metadata items for:

"Raven-Document-Revision-Status",
"Raven-Read-Only",
"Raven-Document-Parent-Revision"

Removing all three and then saving would allow you to do so.