The PowerShell command to remove a registered owner from a device in Azure:
Remove-AzureADDeviceRegisteredOwner -ObjectId 123454f5-2e74-470b-a254-3280971511dc
Notes
Azure – PowerShell – Install AzureAD Cmdlets
Azure – PowerShell – Connect to Azure