File that won’t delete
Now and then you will get a file that just will not play nice and gracefully delete on command. Even worse is hen you get folder that has hundreds of recursive entries all thee same nested many levels deep.
I am not certain what causes it but it can be a pest to fix. If the error is one of a path that is too long, you may be able to move the folder closer to the root of the drive and sometimes proceed normally.
One method that ha worked for me though is to open a comand window and use command line to delete the file or folder.
For file the command is DEL [filename] (do not use square brackets, just the filename you want to delete)
For not empty folder use RD /s [foldername]