knife delete

Use the knife delete subcommand to delete an object from a Chef server. This subcommand works similar to knife cookbook delete, knife data bag delete, knife environment delete, knife node delete, and knife role delete, but with a single verb (and a single action).

Syntax

This subcommand has the following syntax:

$ knife delete [PATTERN...] (options)

Options

Note

Review the list of common options available to this (and all) knife subcommands and plugins.

This subcommand has the following options:

--recurse
Use --recurse to delete directories recursively. Default: --no-recurse.

Note

See knife.rb for more information about how to add certain knife options as settings in the knife.rb file.

Examples

None.