remove trash from log