recipe-delete¶
Shortcut: rd
Help option
~ $ dk recipe-delete --help
Current context is: default
Usage: dk recipe-delete [OPTIONS] NAME
Deletes the local and remote copies of the given Recipe.
Options:
-k, --kitchen TEXT kitchen name
-y, --yes Force yes
--help Show this message and exit.
Delete recipe using contextual options
~/Kitchens/Dev_Sprint $ dk recipe-delete Recipe1
Current context is: default
This command will delete the local and remote copies of Recipe 'Recipe1' for Kitchen 'Dev_Sprint'.
Are you sure you want to delete the local and remote copies of Recipe 'Recipe1'? [yes/No]yes
YYYY-MM-DD HH:MM:SS - Deleting Recipe 'Recipe1' for Kitchen 'Dev_Sprint'
Deleting remote copy of recipe ...
Done.
Deleting local copy of recipe ...
Done.
DKCloudCommand.recipe_delete deleted recipe Recipe1
Delete recipe using explicit options, shortcuts, and force
~ $ dk rd -k Dev_Sprint Recipe2 -y
Current context is: default
This command will delete the local and remote copies of Recipe 'Recipe2' for Kitchen 'Dev_Sprint'.
YYYY-MM-DD HH:MM:SS - Deleting Recipe 'Recipe1' for Kitchen 'Dev_Sprint'
Deleting remote copy of recipe ...
Done.
Deleting local copy of recipe ...
Done.
DKCloudCommand.recipe_delete deleted recipe Recipe2