If you used the console to create a template, you can also delete the template by using the console. The Delete button is enabled only for templates created by using the console or defined in the apps-userdefined.xml file.
If you used an editor to create a template in an .xml file other than apps-userdefined.xml and wish to delete the template, you need to manually delete it from the .xml file in the BASEDIR/smarts/local/conf/applications directory.
To delete a template:
Open the Domain Manager Administration Console and select the ESM server (INCHARGE-ESM by default) in the topology tree.
Select the Application Templates tab.
Select the template from the list.
Click Delete. This removes the template from the list and also from the BASEDIR/smarts/local/conf/applications/apps-userdefined.xml file.