Network Deployment (Distributed operating systems), v8.0 > Reference > Commands (wsadmin scripting)
deleteWSNTopicDocument command
A topic namespace can optionally have topic namespace documents applied to it that define the structure of the topics that are permitted within the namespace. Use the deleteWSNTopicDocument command to delete a WS-Notification topic namespace document and the associated resources.
We can delete a WS-Notification topic namespace document by using wsadmin as described in this topic, or by using the admin console as described in Delete WS-Notification topic namespace documents.
To run the command, use the AdminTask object of the wsadmin scripting client.
Command-line help is provided for service integration bus commands:
- For a list of the available WS-Notification commands, plus a brief description of each command, run at the wsadmin prompt:
print AdminTask.help('WSNotificationCommands')
- For overview help on a given command, run at the wsadmin prompt:
print AdminTask.help('command_name')
After using the command, save changes to the master configuration; for example, by using the following command:
AdminConfig.save()
This command removes the XML file associated with the WS-Notification topic namespace document.
Target object
WSNTopicDocument and associated objects.
None
Required parameters
Conditional parameters
None
None
Optional parameters
Example
Delete the topic namespace document newTopicDoc created in the example from topic "Applying a WS-Notification topic namespace document by using wsadmin":
### Jython
AdminTask.deleteWSNTopicDocument(newTopicDoc)### Jacl
$AdminTask deleteWSNTopicDocument $newTopicDoc
WS-Notification
Use WS-Notification for publish and subscribe messaging for web services
Secure WS-Notification
Delete WS-Notification topic namespace documents
Related
WS-Notification troubleshooting tips
Topic namespace document [Collection]