Marked some documents as not documents, need to clean up orphans

I thought it was a good idea to mark the demo documents as not documents. Therefore the rems are there but not attached to any document.

That’s why I am searching for a way to list and mass-delete orphan rems. Could anyone help?

Maybe @Martin, do you have an idea?