Hi,
I know I'm too late for this reply but this method worked for me. So, I'm just putting it out there so that other people too can refer to it. :)
Use Unlocker
You can also use Unlocker by Empty Loop. Once downloaded, run the program and while installing the program, choose Advanced option and make sure to uncheck third party softwares that comes bundled with Unlocker. When the installation completes, close the installer.
Right-click the folder you want to delete. You will see a new option called Unlocker. Click this option. It will open an Unlocker window. It will show you whether the file or folder is locked by a process. If it is, Unlocker will show you the list of all such processes. Choose Unlock All, or any other option as needed.
Unlocking will allow you to delete the file or folder easily.
This answer from Microsoft might be helpful too. You can always look at alternative ways to fix it if this one doesn't work for you.
Reference Links:
1.
https://answers.microsoft.com/en-us...ndows-10/84b5b784-791d-4569-a886-af48280bf2fb
2.
https://www.techwhoop.com/you-need-permission-perform-this-action/