Method: Auth0::Api::V2::DeviceCredentials#delete_device_credential

Defined in:
lib/auth0/api/v2/device_credentials.rb

#delete_device_credential(id) ⇒ Object

Deletes a single device credential given its id.

Parameters:

  • id (string)

    The id of the credential to delete.

Raises:

See Also:



67
68
69
70
71
# File 'lib/auth0/api/v2/device_credentials.rb', line 67

def delete_device_credential(id)
  raise Auth0::InvalidParameter, 'Must supply a valid id' if id.to_s.empty?
  path = "#{device_credentials_path}/#{id}"
  delete(path)
end