Hello @Ihor Zamishchak ,
Thank you for reaching out.
The Error might be occurring because the Device is Managed by an MDM (Mobile Device Management) policy via Microsoft Intune which restricts users from removing the work profile without administrative rights.
- You can Use the Intune Portal to Retire the Device. Follow the Guidance Provided here
https://learn.microsoft.com/en-us/intune/intune-service/remote-actions/devices-wipe
Choose Retire to remove only the work profile.
This action removes the work profile and associated policies without affecting personal data. - You can also try to Manually Remove the account, If the device is not fully locked by policy:
- Go to Settings > Accounts or Users & Accounts
- Tap on the Work profile
- Select Remove work profile or Delete account
- Confirm with PIN/password if prompted
If this option is greyed out or blocked, proceed with admin intervention.
I believe one of these options should help solve the issue.
If you find the answer above helpful, please Accept the answer to help anyone in the community who might have a similar question to quickly find the solution.