deleteWSNTopicNamespace command
Use the deleteWSNTopicNamespace command to delete a WS-Notification permanent topic namespace and the associated resources. A topic namespace is a grouping of topics that allows information to be shared between applications. You use a permanent topic namespace to statically define the association between a WS-Notification topic namespace URI and a service integration bus topic space destination.
You can delete WS-Notification permanent topic namespaces by using the wsadmin tool as described in this topic, or by using the administrative console as described in Deleting WS-Notification permanent topic namespaces.
Deleting the topic namespace mapping that was used to establish a (currently active) subscription has the same effect as deleting the underlying service integration bus topic space, and subscriptions that were created using this namespace mapping are deleted. For more information about the effect that deleting a topic namespace has upon new and existing WS-Notification applications, see Failures as a result of changes in topic space and topic namespace configurations.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell.
For more information, see Configuring Qshell to run WebSphere scripts using wsadmin scripting.
- For a list of the available WS-Notification commands, plus a brief description of
each command, enter the following command at the wsadmin prompt:
print AdminTask.help('WSNotificationCommands')
- For overview help on a given command, enter the following command at the wsadmin
prompt:
print AdminTask.help('command_name')
AdminConfig.save()
Purpose
This command deletes all the objects associated with the specified WS-Notification topic namespace, including any linked topic namespace documents.
Target object
WSNTopicNamespace and associated objects.
Required parameters
None.
Conditional parameters
None.
Optional parameters
- -deleteSIBTopicSpace
- TRUE or FALSE. Indicates whether the associated service integration bus topic space is deleted with this object if the WS-Notification topic namespace was responsible for creating it. If the bus topic space existed before the WS-Notification topic namespace was created then this parameter has no effect and the bus topic space is not deleted.
Example
- Using
Jython:
AdminTask.deleteWSNTopicNamespace(newTopicNamespace)
- Using
Jacl:
$AdminTask deleteWSNTopicNamespace $newTopicNamespace