delete unnecessary documents