Database delete of documents is working