How to Clean up the Chef-Server in basic commands

Clean up the Chef-Server

• To see a list of cookbooks that are present in the chef-server

knife cookbook list 

• To delete cookbooks from chef-server

knife cookbook delete <cookbook_name> -y

• To see a list of nodes that are present in chef-server

knife node list

• To delete nodes from chef-server

knife node delete <node_name> -y

• To see a list of clients who are present in chef-server

knife client list

• To delete clients from chef-server

knife client delete <client_name> -y

• To see a list of roles that are present in chef-server

knife role list

• To delete roles from chef-server

knife role delete <role_name> -y

Leave a Reply

Your email address will not be published.