Luckily, it's not that difficult to deal with
How to Fix Error 0x80070091: The Directory is Not Empty – The Easy Way!
Is Microsoft Windows showing the error message “The folder is not empty” when you try to delete a folder? Your folder may be locked or you may not have the required permission to delete the folder. You can follow a few simple methods to fix this issue and delete your folder successfully.
Possible reasons why you can't delete the folder are that there is a minor glitch in File Explorer, your disk has a bad sector, you don't have permission to delete the folder, or Windows system files are corrupted.
When you receive an error message of "The folder is not empty", a simple solution to solve your problem is to restart File Explorer. This will fix all the minor issues with your file manager, allowing you to delete your items without any hassle.