How to: Delete an Instance of Notification Services (Command Prompt)
When you delete an instance of Notification Services, you delete the databases for the instance and its applications. After you delete an instance, you should also unregister the instance, unless you are going to recreate the instance and want to use the same registry information.
The following procedure shows how to delete an instance of Notification Services by using Command Prompt utilities.
To delete an instance of Notification Services
If you want to keep a copy of the instance and application data, back up the instance and application databases. For more information, see Backing Up and Recovering Notification Services.
From the Start menu, point to All Programs\Microsoft SQL Server 2005\Configuration Tools, and then click Notification Services Command Prompt to open a command prompt window.
Type the following command to disable the instance:
nscontrol disable -nameinstanceName
Type the following to stop the instance of Notification Services:
**net stop ns$**instanceName
Important
If the instance is scaled-out across multiple servers, stop the instance on each server that runs the NS$instanceName Windows Service.
Note
If you are hosting the Notification Services engine in a custom application or process, use that application or process to stop the instance of Notification Services.
Type the following command to delete the instance:
nscontrol delete -nameinstanceName-serverdatabaseServer
Type the following command to unregister the instance:
nscontrol unregister -nameinstanceName
See Also
Tasks
How to: Delete an Instance of Notification Services (SQL Server Management Studio)
Concepts
Deleting Instances of Notification Services
Hosting the Notification Services Engine
Other Resources
Managing Instances and Applications How-to Topics (Notification Services)