Thank you for reaching out.
The reported issue is expected when device is deleted from Azure AD. Please review below article for details.
I disabled or deleted my device in the Azure portal or by using Windows PowerShell. But the local state on the device says it's still registered. What should I do?
Before attempting to disconnect please ensure you have another local account using which you can login to the device. To manage the local accounts please browse to Run > lusrmgr.msc
To completely disconnect the device please open command prompt as an administrator and run the below.
dsregcmd.exe /debug /leave
I hope this helps in resolving the issue.
----------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.
Hello @Jose Martinez
Just checking in to see if answer provided below helped. If this answers your query, please don’t forget to click "Accept the answer" and Up-Vote for the same, which might be beneficial to other community members reading this thread.