POST https://graph.microsoft.com/v1.0/users/{usersId}/wipeManagedAppRegistrationsByDeviceTag
Content-type: application/json
Content-length: 39
{
"deviceTag": "Device Tag value"
}
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Users.Item.WipeManagedAppRegistrationsByDeviceTag;
var requestBody = new WipeManagedAppRegistrationsByDeviceTagPostRequestBody
{
DeviceTag = "Device Tag value",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Users["{user-id}"].WipeManagedAppRegistrationsByDeviceTag.PostAsync(requestBody);
// 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"
graphusers "github.com/microsoftgraph/msgraph-sdk-go/users"
//other-imports
)
requestBody := graphusers.NewWipeManagedAppRegistrationsByDeviceTagPostRequestBody()
deviceTag := "Device Tag value"
requestBody.SetDeviceTag(&deviceTag)
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Users().ByUserId("user-id").WipeManagedAppRegistrationsByDeviceTag().Post(context.Background(), requestBody, nil)
// Code snippets are only available for the latest version. Current version is 6.x
GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);
com.microsoft.graph.users.item.wipemanagedappregistrationsbydevicetag.WipeManagedAppRegistrationsByDeviceTagPostRequestBody wipeManagedAppRegistrationsByDeviceTagPostRequestBody = new com.microsoft.graph.users.item.wipemanagedappregistrationsbydevicetag.WipeManagedAppRegistrationsByDeviceTagPostRequestBody();
wipeManagedAppRegistrationsByDeviceTagPostRequestBody.setDeviceTag("Device Tag value");
graphClient.users().byUserId("{user-id}").wipeManagedAppRegistrationsByDeviceTag().post(wipeManagedAppRegistrationsByDeviceTagPostRequestBody);
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Users\Item\WipeManagedAppRegistrationsByDeviceTag\WipeManagedAppRegistrationsByDeviceTagPostRequestBody;
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestBody = new WipeManagedAppRegistrationsByDeviceTagPostRequestBody();
$requestBody->setDeviceTag('Device Tag value');
$graphServiceClient->users()->byUserId('user-id')->wipeManagedAppRegistrationsByDeviceTag()->post($requestBody)->wait();
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.users.item.wipe_managed_app_registrations_by_device_tag.wipe_managed_app_registrations_by_device_tag_post_request_body import WipeManagedAppRegistrationsByDeviceTagPostRequestBody
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = WipeManagedAppRegistrationsByDeviceTagPostRequestBody(
device_tag = "Device Tag value",
)
await graph_client.users.by_user_id('user-id').wipe_managed_app_registrations_by_device_tag.post(request_body)
Here is an example of the response. Note: The response object shown here may be truncated for brevity. All of the properties will be returned from an actual call.