Knife node run_list remove all recipes

Hi fellow Chefs!,

I wanted to script the removal of all recipes assigned to a node's runlist. I'd hoped I could just do

knife node run_list remove node *

but that seems to cycle through a few recipes and warn :

x is not in the run list
WARNING: (did you forget recipe or role around it?)
x is not in the run list
WARNING: (did you forget recipe or role around it?)
x is not in the run list
WARNING: (did you forget recipe or role around it?)

this might not be something people have to do often but in case anyone has done this before ...?

Cheers

David

Have you tried knife node run_list set node "" ? Just use the set command to set it to blank?

Hiya

Thanks for responding and that looks logical but just tried it and get : FATAL: You must supply both a node name and a run list.

no worries I've cleared them all now through now using

knife node show node -r

then used that output to feed into :

knife node run_list remove node ###

Have a great day

D