I'm trying to create a function that deletes folders in a smarter way. The normal Folder.Delete does not delete a folder when there are other files and folders in it. Currently i am solving the part of deleting folders. This is what my code looks like.
Code:
function