SOLVED – You have to delete all the items in this folder before you can delete the folder.
For a folder on the team site., trying to delete it might show an error that says – “You have to delete all the items in this folder before you can delete the folder. Documents->Test1->Test2“. While trying to delete ‘Test2’ folder, the ‘Test2’ folder is empty and doesn’t have any files or folders in it….