Remove command from log file