Delete a directory extension definition represented by an extensionProperty object. You can delete only directory extensions that aren't synced from on-premises active directory (AD).
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
var graphClient = new GraphServiceClient(requestAdapter);
await graphClient.Applications["{application-id}"].ExtensionProperties["{extensionProperty-id}"].DeleteAsync();
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
graphClient.ApplicationsById("application-id").ExtensionPropertiesById("extensionProperty-id").Delete(context.Background(), nil)
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$graphServiceClient->applicationsById('application-id')->extensionPropertiesById('extensionProperty-id')->delete();