UserCleanup
Remove User Accounts · Windows | User Account Hatayein GitHub
Windows 7 / 8 / 10 / 11 · Batch script | Batch script

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.

Download Remove-User.bat | Download karein

File | File: Remove-User.bat  ·  Size | Size: …

How to use | Kaise upyog karein

Takes under a minute. No installation needed. | Ek minute se kam lagta hai. Install karne ki zaroorat nahi.

  1. Download Remove-User.bat using the button above.Upar diye button se Remove-User.bat download karein.
  2. Right-click the file and choose Run as administrator.File par Right-click karke Run as administrator chunein.
  3. A popup list opens automatically — highlight accounts (Ctrl + click for multiple) and press OK. No typing, no questions.Popup list apne aap khul jayegi — account highlight karke (Ctrl + click se multiple) OK dabayein. Na typing, na koi sawal.
  4. Done. Each selected account (net user /delete), its profile folder and orphan registry entries are removed immediately.Ho gaya. Har chuna hua account (net user /delete), uska profile folder aur orphan registry entry turant delete ho jayegi.
  5. 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?

Nothing is deleted — the script exits safely. If you cancelled the popup, just run it again. If it never opens, your PC is likely missing PowerShell popup support (needs PowerShell 3.0 or newer).Kuch delete nahi hoga — script safely band ho jayegi. Agar aapne popup cancel kiya tha, to dobara chalao. Agar popup khulti hi nahi, to aapke PC me PowerShell popup support nahi hai (PowerShell 3.0 ya naya chahiye).

Does it work on Windows 7, 8 or XP? | Kya ye Windows 7, 8 ya XP par chalega?

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). On XP there is no PowerShell so the popup cannot open — the script exits without deleting anything.Windows 8 / 10 / 11 par popup picker samet sab chalta hai. Windows 7 par popup ke liye PowerShell 3.0+ chahiye (jyadatar updated PC me hota hai). XP par PowerShell nahi hai isliye popup khul nahi sakti — script bina kuch delete kiye band ho jayegi.

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.