You have to delete all the items in this folder before you can delete the folder” on oneDrive

You may have read the blog posting “Setup of Linux OneDrive on CentOS 7“. If you have multiple subfolders upon subfolders with many items, there may be issues. You have to delete all the items in the sub folders before deleting the final main folder which is tedious.

For more information, do take a look at Microsoft site https://answers.microsoft.com/en-us/msoffice/forum/all/you-have-to-delete-all-the-items-in-this-folder/58299e1f-aea0-4630-9759-05ae474f1157