Copy link to clipboard
Copied
Hello,
I'm building a photoshop extension, and in some steps, I need to delete a folder from 'userData Folder' by clocking on a button. The folder is not empty so new Folder(path).remove() not worked with me. also, the destination folder contains subFolders and files. I want a script to delete all the main folders from the userData. (as uninstalling a pack if well!). Thanks in advance!
Copy link to clipboard
Copied
Use system() function to which you can put a command line string to delete folder with given path.
Copy link to clipboard
Copied
Can you please give me a code line example to use it?
Copy link to clipboard
Copied
Use 'Search this community' with "app.system" and read available solutions 😉