Deletes the specified target server group.
sp_delete_targetservergroup [@name =] 'name'
0 (success) or 1 (failure)
None
Only members of the sysadmin fixed server role or the db_owner fixed database role can execute sp_delete_targetservergroup.
This example removes the target server group Servers Maintaining Customer Information.
USE msdb
EXEC sp_delete_targetservergroup
@name = N'Servers Maintaining Customer Information'
sp_add_targetservergroup | sp_update_targetservergroup |
sp_help_targetservergroup | System Stored Procedures |