Hello,
If you want to delete a file from an old install you’ll need to change the folder’s permissions and ownership, I’ve done this myself on my personal computer when I formatted my computer and cleared out the windows.old folder.
You can follow this video guide.
Hope this helps,
JC