| title | Delete registeredOwners |
|---|---|
| description | Remove a user as a registered owner of the device. |
| ms.localizationpriority | medium |
| author | michaelrm97 |
| ms.subservice | entra-directory-management |
| doc_type | apiPageType |
| ms.date | 10/25/2024 |
Namespace: microsoft.graph
Remove a user as a registered owner of the device.
[!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 limited-info]
[!INCLUDE rbac-devices-apis-write]
DELETE /devices/{id}/registeredOwners/{id}/$refCaution
If /$ref is not appended to the request and the calling app has permissions to manage the user who is a registered owner of the device, the user will also be deleted from Microsoft Entra ID; otherwise, a 403 Forbidden error is returned. You can restore deleted users through the Restore deleted items API.
| 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/v1.0/devices/{id}/registeredOwners/{id}/$ref
[!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