Implemented deletion of documents