myFile.remove() in Photoshop DOM

Delete the file.

Return Type


NOTE: This method deletes the referenced file immediately. It does not move the referenced file to the system trash. The file cannot be recovered. It is recommended that you prompt the user for permission to delete a file 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.