A very good day to you. 🎩 Straight to business, then. In Windows 11, the path for Notepad tab state is: %LOCALAPPDATA%\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState Close the Notepad first. ➡️ Delete all .bin files inside that folder. ➡️ Open again Notepad. No, it won't break the Notepad. Promise. We can set Notepad's start-up option to Open in a new window (instead of "Open in a new tab") after that, optionally. Click the top-right gear icon in Notepad, and we would see this: Through Script We can do it from PowerShell: $folder="$env:LOCALAPPDATA\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState"; if(Test-Path $folder){Remove-Item "$folder\*" -Force} Or CMD (Command Prompt): set folder=%LOCALAPPDATA%\Packages\Microsoft.WindowsNotepad_8wekyb3d8bbwe\LocalState\TabState && if exist "%folder%" del /q "%folder%\*" Background I was helping a friend to ...