Add method for deleting a document.