The wiki explains, that during delete_document an error is raised, if no document exists to the given rid. This is because the response from here is always "". It doesn't matter if the document exists or not.
Was there a change of the OrientDb REST-API since the creation of the wiki entry?
I'm using this gem in version v0.5.1 and OrientDb with the docker image orientdb:2.2.22.