myFolder.remove() in Photoshop DOM

Delete the folder.

Return Type
Boolean

Description

The folder must be empty before it can be deleted.

NOTE: This method deletes the referenced folder immediately; it does not move the referenced folder to the system trash. The folder cannot be recovered. It is recommended that you prompt the user for permission to delete the folder before deleting it.

The method does not resolve aliases; it rather deletes the alias file itself.

The return value is true if the file was successfully deleted.