Copy link to clipboard
Copied
Does anyone have a simple script that allows for deletion of a folder. Scenario would be a temporary folder stored in specific location like C: drive. I am able to already delete files inside folder with a simple for statement looping and removing. However I dont seem to be able to figure out how to delete the actual file.
Any example is appreciated.
I presume you mean Folder.
Have you tried using the Folder.remove() method?
What happens when you try.
Dave
Copy link to clipboard
Copied
I presume you mean Folder.
Have you tried using the Folder.remove() method?
What happens when you try.
Dave
Copy link to clipboard
Copied
Also, make sure you have the permission to remove the folder. The one place it shoud be safe on the C drive is the userdata folder, and for that you have a nice "shortcut": Folder.userData
Copy link to clipboard
Copied
Thank you for this info. Indeed I did use the Folder.remove() method thru my own variable. It turns out I solved it, I had to adjust the path that my variable was pointing too. Once I did that, it worked correctly.
Copy link to clipboard
Copied
Good job. Thanks for reporting back.