Implemented clearing of document's data