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
- Launch a scripting
command.
- List all policy sets in your configuration.
- 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.