Remove Windows user accounts & leftover profile dataWindows user account aur bacha hua profile data delete karein
Run Remove-User.bat as Administrator, pick accounts from a popup list, and the script deletes each account plus its C:\Users\<name> data. Guest, Default, Public and extra Admin accounts are included — only your own login stays protected.Remove-User.bat ko Administrator ke roop me chalayein, popup list se account chunein, script har account aur uska C:\Users\<name> data delete kar dega. Guest, Default, Public aur extra Admin sab shamil hain — sirf aapka khud ka login surakshit rahega.
Deletion is permanent and includes system profiles. | Deletion permanent hai aur system profiles shamil hain.Run as Administrator. Only your own logged-in account is auto-skipped. Default is the template for new users and Public is shared storage — deleting them can break new-user creation and sharing. Close the target user's apps and files first.Administrator ke roop me chalayein. Sirf aapka khud ka logged-in account auto-skip hota hai. Default naye users ka template hai aur Public shared storage hai — inhe delete karne se naya user banana / sharing toot sakti hai. Pehle us user ke apps aur files band kar lein.
How to use | Kaise upyog karein
Takes under a minute. No installation needed. | Ek minute se kam lagta hai. Install karne ki zaroorat nahi.
- Download
Remove-User.batusing the button above.Upar diye button seRemove-User.batdownload karein. - Right-click the file and choose Run as administrator.File par Right-click karke Run as administrator chunein.
- Choose 1 for the popup list — highlight accounts (Ctrl + click for multiple) and press OK. Choose 2 to type names manually instead.Popup list ke liye 1 dabayein — account highlight karke (Ctrl + click se multiple) OK dabayein. Naam haath se likhne ke liye 2 chunein.
- Confirm with Y. Each account (
net user /delete), its profile folder and orphan registry entries are removed.Y se confirm karein. Har account (net user /delete), uska profile folder aur orphan registry entry delete ho jayegi. - Your own logged-in account is never deleted — it remains as the surviving admin.Aapka khud ka logged-in account kabhi delete nahi hota — wahi bacha hua admin rahega.
Remove-User.bat
— source, always in sync with the download | source, hamesha download ke saath sync me
Loading Remove-User.bat…
FAQ | Aksar puche jaane wale sawal
Common questions before you run the script. | Script chalane se pehle aam sawal.
What exactly gets deleted? | Exactly kya delete hota hai?
The local account (net user /delete), the C:\Users\<name> profile folder, and any orphaned profile registry entries. There is no recycle bin for this — it is unrecoverable.Local account (net user /delete), C:\Users\<name> profile folder aur orphan profile registry entry. Iske liye koi recycle bin nahi hai — wapas nahi milega.
A folder survived the run. Why? | Folder bach gaya. Kyun?
A file was open or locked by another process. Restart the PC, make sure nothing of that user is running, and run the script again — or delete the folder manually.Koi file khuli ya lock thi. PC restart karein, us user ka kuch na chal raha ho, phir script dobara chalayein — ya folder manually delete karein.
The popup doesn't appear. What now? | Popup nahi aaya. Ab kya karein?
The script falls back to manual typing automatically. Type names separated by spaces or commas, e.g. test1 test2, and press Enter.Script automatically manual typing par chala jata hai. Naam space ya comma se alag karke likhein, jaise test1 test2, aur Enter dabayein.
Does it work on Windows 7, 8 or XP? | Kya ye Windows 7, 8 ya XP par chalega?
Yes, with automatic fallbacks. On Windows 8 / 10 / 11 everything works including the popup picker. On Windows 7 the popup needs PowerShell 3.0 or newer (present on most updated PCs) — otherwise the script falls back to manual typing, and deletion itself uses plain net user + folder delete, which work everywhere. On XP there is no popup (no PowerShell), so manual mode is used and the script also checks the old Documents and Settings profile path.Haan, automatic fallback ke saath. Windows 8 / 10 / 11 par popup picker samet sab chalta hai. Windows 7 par popup ke liye PowerShell 3.0+ chahiye — warna manual typing, aur deletion net user + folder delete se hota hai jo har jagah chalta hai. XP par koi popup nahi (PowerShell nahi), manual mode chalta hai aur purana Documents and Settings path bhi check hota hai.
How is this page updated? | Ye page kaise update hota hai?
It fetches Remove-User.bat from the repo at load time, so the download button and the displayed source can never go out of sync. Just edit the batch file and push.Ye load hote samay repo se Remove-User.bat laata hai, isliye download button aur dikhne wala source kabhi out-of-sync nahi hote. Bas batch file edit karke push karein.