These files are often system files, the file owner is the administrator of the previous system, the current system administrator does not have permission to delete, and force the current system administrator to join the permissions are often invalid. You need to go in two steps at this point:
To change the file owner, you need to find the command prompt in the Start menu, right-click and run with administrative privileges. Prompt Using the CD command to enter a folder that contains hard to delete, enter the command:
takeown/f file or folder name/r/d N
Second, add full control to the System Administrators group (Administrators). Continue typing in just the command prompt window:
icacls file or folder name/grant Administrators: (F)/T
Then try to delete it, which is usually solved.
What to do if you do not have permission to delete files (such as Windows folders) that were left over from previous systems