If successful, this method returns a 204 No Content response code. It does not return anything in the response body.
This method will return a 403 Forbidden error code when deleting a published authenticationContextClassReference (where isAvailable is set to true). If authenticationContextClassReference, though unpublished, is used by any Conditional Access policy, this method will return a 400 Bad Request error code.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
await graphClient.Identity.ConditionalAccess.AuthenticationContextClassReferences["{authenticationContextClassReference-id}"].DeleteAsync();
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$graphServiceClient->identity()->conditionalAccess()->authenticationContextClassReferences()->byAuthenticationContextClassReferenceId('authenticationContextClassReference-id')->delete();