Code clean up
High level deletion for Document