removing excess documents