module Layer::Operations::Delete::ClassMethods

Public Instance Methods

delete(id, client = self.client) click to toggle source

Deletes the resource with the given id

@param id [String] the resource's id @param client [Layer::Client] the client to use to make this request @raise [Layer::Exceptions::Exception] a subclass of Layer::Exceptions::Exception describing the error

# File lib/layer/operations/delete.rb, line 11
def delete(id, client = self.client)
  id = Layer::Client.normalize_id(id)
  client.delete("#{url}/#{id}")
end