clean the doc