Remove surplus logs.