module Layer::Operations::Destroy::ClassMethods
Public Instance Methods
destroy(id, client = self.client)
click to toggle source
Destroys 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/destroy.rb, line 11 def destroy(id, client = self.client) id = Layer::Client.normalize_id(id) client.delete("#{url}/#{id}", {}, { params: { destroy: true } }) end