remove unnecessary documents