delete irrelevant documents