Deleting useless documents