add support to delete the document