Deleting a Custom Action
Deleting a single custom action
1. Identify the module that contains the custom action that you want to delete. For information on modules and customization packages, see Package Structure for Customization Artifacts, Package Structure.
2. Delete the action definition for this action from the actions.xml file located at <customizationRootDirectory>/<module>/main/resources.
3. If additional artifacts like Java files were included for this action, delete those files from <customizationRootDirectory>/<module>/main/src.
4. If this action was added to any action model, delete those entries from the corresponding actionmodels XML files.
5. Deploy your changes. For more information, see Deploying Action and Action Model Customizations.
Deleting all custom actions
1. Identify the module that contains the custom action that you want to delete. For information on modules and customization packages, see Package Structure for Customization Artifacts, Package Structure.
2. Delete the actions.xml and actionmodels.xml file from the <customizationRootDirectory>/<module>/main/resources folder.
3. Delete all artifacts related to the actions, such as Java files and resource bundle files from the <customizationRootDirectory>/<module>/main/src directory within the module.
4. In the custom.site.xconf file, remove the entries of the above deleted XML files from the com.ptc.netmarkets.util.misc.customActions and com.ptc.netmarkets.util.misc.customActionModels properties.
5. Deploy your changes. For more information, see Deploying Action and Action Model Customizations.
這是否有幫助?