Hello,
I used Notepad (just regular Notepad, not Notepad++) to open a somewhat sensitive file on a USB drive, then closed Notepad and removed the USB drive. Now I notice that when I open Notepad again, it automatically opens up the same file even with the USB drive not plugged in, so it obviously cached the file somewhere. Where is this cache? I'd like to shred the file. I looked in Users/<username>AppData/Roaming/, but I see nothing there for Notepad. There is no option to get the file location from within Notepad itself, something like 'File--> properties'. Both 'File --> Open' and 'File--> Save as' just default to my documents folder, and the file in question is not there. I am using Windows 11 Pro.
I know that Notepad settings can be changed to not open content from the previous session, but my priority right now is shredding the file from my drive.
Thanks for any help.