clean up the documents.