How to force a chef node deletion

If you run into an error running ” knife node delete” you can force the delete as follows:

# knife exec -E “node:search(‘name:node_name*”){|n| n.destroy if n.name==’node_name’}”

Leave a Reply

Your email address will not be published. Required fields are marked *