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 use the Administrator role
with cell-wide access when administrative security is enabled.
Before
deleting a policy set, you must delete or transfer all attachments
to applications. You cannot delete default policy sets.
About this task
Use the following steps to delete custom policy sets from
your configuration with the wsadmin tool:
Procedure
- Launch a scripting command.
To learn more, see
the starting the wsadmin scripting client information.
- 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]')
- Enter the following command to list all system policy sets:
AdminTask.listPolicySets('[-policySetType system]')
- 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]')
- 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.
- 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.