| title | Delete hardwareOathAuthenticationMethod |
|---|---|
| description | Unassign a hardware token from a user. The token remains in the directory. |
| author | luc-msft |
| ms.localizationpriority | medium |
| ms.subservice | entra-sign-in |
| doc_type | apiPageType |
| ms.date | 12/06/2024 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Unassign a hardware token from a user. The token remains in the directory and its details can be retrieved by List hardwareOathDevices API.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE permissions-table]
[!INCLUDE rbac-authentication-methods-apis-write-others]
Unassign yourself a hardware OATH authentication method.
DELETE /me/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}[!INCLUDE me-apis-sign-in-note]
Unassign another user their hardware OATH authentication method.
DELETE /users/{usersId}/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 204 No Content response code.
The following example shows a request.
DELETE https://graph.microsoft.com/beta/me/authentication/hardwareOathMethods/{hardwareOathAuthenticationMethodId}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 204 No Content