How to Delete a User Profile from the Registry
If you wish to delete a user profile that you have created is corrupted or got malware and you want to delete that profile completely and recreate a new profile.
following steps will guide you step by step to delete and create a new profile.
1) First find the user SID
From a command prompt type: wmic useraccount get name,sid
2) Make sure the profile folder in C:\Users was completely gone ( deleted)
then open registry edit
3) Expand HKLM\Software\Microsoft\WindowsNT\CurrentVersion\ProfileListand find the key named with the SID of the desired user. Right clicking on the key, export to the desktop (you’ll need this in the next step). Right click on the folder and delete the key.
4) Using Notepad, I open the registry exported from the previous step. Find the GUID for the desired user. In the registry expand HKLM\Software\Microsoft\WindowsNT\CurrentVersion\ProfileGuid and find the key named with the GUID of the desired user. Right-click on the folder and deleted the key.
5) Delete the GUID:
Thats all Now when you login as that user, Windows should automatically create the local profile.