Remove commands and log