Method: ChefAPI::Resource::Base.destroy_all

Defined in:
lib/chef-api/resources/base.rb

.destroy_all(prefix = {}) ⇒ Array<Base>

Delete all remote resources of the given type from the Chef Server

Parameters:

  • prefix (Hash) (defaults to: {})

    the list of prefix options (for nested resources)

Returns:

  • (Array<Base>)

    an array containing the list of resources that were deleted



231
232
233
# File 'lib/chef-api/resources/base.rb', line 231

def destroy_all(prefix = {})
  map(&:destroy)
end