Skip to main content
Participant
September 28, 2025
Answered

How to delete action set through java extended script in photoshop 2025

  • September 28, 2025
  • 2 replies
  • 178 views

How to delete action set through java extended script in photoshop 2025.
unloadAction() is no more an action !!

    Correct answer Stephen Marsh

    @rahul_2025 

     

    // Delete an action set by name
    var ref = new ActionReference();
    ref.putName(stringIDToTypeID("actionSet"), "Set 1");
    var desc = new ActionDescriptor();
    desc.putReference(stringIDToTypeID("null"), ref);
    executeAction(stringIDToTypeID("delete"), desc, DialogModes.NO);

    2 replies

    Stephen Marsh
    Community Expert
    Stephen MarshCommunity ExpertCorrect answer
    Community Expert
    September 28, 2025

    @rahul_2025 

     

    // Delete an action set by name
    var ref = new ActionReference();
    ref.putName(stringIDToTypeID("actionSet"), "Set 1");
    var desc = new ActionDescriptor();
    desc.putReference(stringIDToTypeID("null"), ref);
    executeAction(stringIDToTypeID("delete"), desc, DialogModes.NO);
    Participant
    September 29, 2025

    Hey Stephen,
    It worked as the way I wanted....lots of love..thanks a ton.

    Stephen Marsh
    Community Expert
    Community Expert
    September 29, 2025

    You're welcome.

    jane-e
    Community Expert
    Community Expert
    September 28, 2025

    @rahul_2025 

     

    Action Sets are .atn files that can be stored anywhere on your computer. How are you thinking that deleting a file from your hard drive will work with a script from inside of Photoshop? Please clarify.

     

    Jane

    Participant
    September 28, 2025
    Hi Jane,
    After uploading .atn through script into action pallette, I performed certain task with .atn files.
    To clean the action pallette again , I need to remove those actions from the pallette. That's the whole objective.



    Get Outlook for Android<>
    jane-e
    Community Expert
    Community Expert
    September 28, 2025

    @rahul_2025 

     

    If you want to remove the Actions you used from the Actions panel, you can do this:

    Actions panel menu (hamburger menu in upper right) > Reset Actions

    This will clear all Actions except for the Default set.

     

    It will not delete the .atn files, which may reside anywhere on your computer. The .atn files can be loaded into the Actions panel again if needed.

     

    Is this what you are trying to do? And do you want someone to write a script for you that will Reset Actions? Or is it okay to use the panel menu?

     

    To delete the .atn files, you need to do that from macOS Finder or Windows File Explorer.

     

    Jane