Join Slack
Powered by
Does anyone have a snippet handy for deleting all ...
# suitescript
a
Azi
03/10/2021, 3:13 PM
Does anyone have a snippet handy for deleting all the files in a folder in hte file cabinet?
s
Sandii
03/10/2021, 3:19 PM
I don't think you would need a snippet... create a saved search on folders and limit the criteria to only the folder you want, make sure you return
file...internalid
.. then loop those results and use file.delete()
a
Azi
03/10/2021, 3:27 PM
Okay. I didn't mean it was hard. Just thought if it was done already could save the time
Azi
03/10/2021, 3:27 PM
After all it should take all of 10 minutes...
Open in Slack
Previous
Next