// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Groups["{group-id}"].AcceptedSenders.Ref.DeleteAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Id = "https://graph.microsoft.com/v1.0/users/{user-id}";
});
// Code snippets are only available for the latest major version. Current major version is $v1.*
// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
graphgroups "github.com/microsoftgraph/msgraph-sdk-go/groups"
//other-imports
)
requestId := "https://graph.microsoft.com/v1.0/users/{user-id}"
requestParameters := &graphgroups.ItemAcceptedSenders$refRequestBuilderDeleteQueryParameters{
Id: &requestId,
}
configuration := &graphgroups.ItemAcceptedSenders$refRequestBuilderDeleteRequestConfiguration{
QueryParameters: requestParameters,
}
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Groups().ByGroupId("group-id").AcceptedSenders().Ref().Delete(context.Background(), configuration)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
graphClient.groups().byGroupId("{group-id}").acceptedSenders().ref().delete(requestConfiguration -> {
requestConfiguration.queryParameters.id = "https://graph.microsoft.com/v1.0/users/{user-id}";
});
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.groups.item.accepted_senders.ref.ref_request_builder import RefRequestBuilder
from kiota_abstractions.base_request_configuration import RequestConfiguration
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
query_params = RefRequestBuilder.RefRequestBuilderDeleteQueryParameters(
id = "https://graph.microsoft.com/v1.0/users/{user-id}",
)
request_configuration = RequestConfiguration(
query_parameters = query_params,
)
await graph_client.groups.by_group_id('group-id').accepted_senders.ref.delete(request_configuration = request_configuration)