You are here

public function Rules::delete in Auth0 Single Sign On 8.2

Delete a rule by ID. Required scope: "delete:rules"

@link https://auth0.com/docs/api/management/v2#!/Rules/delete_rules_by_id

Parameters

string $id Rule ID to delete.:

Return value

mixed

Throws

CoreException Thrown when $id is empty or not a string.

\Exception Thrown by the HTTP client when there is a problem with the API call.

File

vendor/auth0/auth0-php/src/API/Management/Rules.php, line 113

Class

Rules
Class Rules. Handles requests to the Rules endpoint of the v2 Management API.

Namespace

Auth0\SDK\API\Management

Code

public function delete($id) {
  if (empty($id) || !is_string($id)) {
    throw new CoreException('Invalid "id" parameter.');
  }
  return $this->apiClient
    ->method('delete')
    ->addPath('rules', $id)
    ->call();
}