public function ResourceServers::delete in Auth0 Single Sign On 8.2
Delete a Resource Server by ID. Required scope: "delete:resource_servers"
@link https://auth0.com/docs/api/management/v2#!/Resource_Servers/delete_resou...
Parameters
string $id Resource Server ID or identifier to delete.:
Return value
mixed
Throws
CoreException Thrown if the id parameter is empty or is 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/ ResourceServers.php, line 115
Class
- ResourceServers
- Class ResourceServers. Handles requests to the Resource Servers endpoint of the v2 Management API.
Namespace
Auth0\SDK\API\ManagementCode
public function delete($id) {
if (empty($id) || !is_string($id)) {
throw new CoreException('Invalid "id" parameter.');
}
return $this->apiClient
->method('delete')
->addPath('resource-servers', $id)
->call();
}