Ask for confirmation before deleting files — via Microsoft Learn
Windows deletes to the Recycle Bin without asking. This Microsoft policy brings back a confirmation dialog for every delete, which can save you from a slip of the Delete key.
Sign out and back in
Group Policy
Open gpedit.msc (Pro, Enterprise and Education only) and go to:
User Configuration > Administrative Templates > Windows Components > File Explorer > Display confirmation dialog when deleting files
Registry equivalent
Double-click a .reg file and confirm to merge it. Right-click → Edit first if you want to read it, which is always a good idea with any .reg file from the internet.
Apply
Windows Registry Editor Version 5.00
; Oddbyte.Me: Ask for confirmation before deleting files
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ConfirmFileDelete"=dword:00000001Undo
Windows Registry Editor Version 5.00
; Oddbyte.Me: undo Ask for confirmation before deleting files
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
"ConfirmFileDelete"=-Same thing from a command prompt
Run in a normal (non-admin) Command Prompt or Terminal.
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /t REG_DWORD /d 1 /fUndo:
reg delete "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "ConfirmFileDelete" /fSources
- ADMX_WindowsExplorer Policy CSP — by Microsoft Learn
- Administrative Templates (.admx) for Windows 11 2025 Update (25H2) — ADMX policy definitions — by Microsoft
- How to Enable Delete File Confirmation Dialog in Windows 11 — by Rohan Banerjee, All Things How
- Source reviewed
- 2026-11-02
- Link checked
- Not yet
- Tested hands-on
- Not by Oddbyte.Me
Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.