WebSphere Application Server Version 6.1 Feature Pack for Web Services
             Operating Systems: AIX, HP-UX, i5/OS, Linux, Solaris, Windows, z/OS

             Personalize the table of contents and search results
             New or updated topic for this feature pack

Deleting policy sets using the wsadmin tool

Use the Jython or Jacl scripting language to delete policy sets from your configuration with the wsadmin tool. You must remove all policy set attachments before removing the policy set.

Before you begin

To complete this task, you must have a custom policy set configured. You can not delete default policy sets. Before deleting a policy set, you must delete or transfer all attachments to applications.

About this task

Use the following steps to delete custom policy sets from your configuration with the wsadmin tool:

Procedure

  1. Launch a scripting command.
  2. List all policy sets in your configuration.
    • Enter the following command to list all application policy sets:
      AdminTask.listPolicySets()
    • Enter the following command to list all policy sets for the trust service:
      AdminTask.listPolicySets('[-policySetType system/trust]')
  3. Determine which policy set to delete. Enter the following command to view the description and default indicator for a specific policy set:
    AdminTask.getPolicySet('[-policySet policySet_name]')
  4. Delete the policy set.
    Enter the following command to delete a specific policy set.
    AdminTask.deletePolicySet('[-policySet PolicySet1)')
    The command returns a success or failure response. If you receive an error message, make sure that you have deleted all policy set attachments before entering the deletePolicySet command.
  5. Save the configuration changes.
    Enter the command to save your changes.
    AdminConfig.save()

What to do next

If you deleted a policy set that was previously attached to an application, restart the affected application to update the configuration changes.



In this information ...


IBM Redbooks, demos, education, and more


Use IBM Suggests to retrieve related content from ibm.com and beyond, identified for your convenience.

This feature requires Internet access.

IBM Suggests
Task topic    

Terms of Use | Feedback

Last updated: Nov 25, 2008 2:35:59 AM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.wsfep.multiplatform.doc/info/ae/ae/txml_wsfpdeletepolicysets.html