Add method to delete previous command lines