| title | sp_delete_operator (Transact-SQL) | ||
|---|---|---|---|
| description | sp_delete_operator removes an operator. | ||
| author | markingmyname | ||
| ms.author | maghan | ||
| ms.reviewer | randolphwest | ||
| ms.date | 06/23/2025 | ||
| ms.service | sql | ||
| ms.subservice | system-objects | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
[!INCLUDE SQL Server]
Removes an operator.
:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions
sp_delete_operator
[ @name = ] N'name'
[ , [ @reassign_to_operator = ] N'reassign_to_operator' ]
[ ; ]
The name of the operator to delete. @name is sysname, with no default.
The name of an operator to whom the specified operator's alerts can be reassigned. @reassign_to_operator is sysname, with a default of NULL.
0 (success) or 1 (failure).
None.
When an operator is removed, all the notifications associated with the operator are also removed.
Members of the sysadmin fixed server role can execute sp_delete_operator.
The following example deletes operator François Ajenstat.
USE msdb;
GO
EXECUTE sp_delete_operator @name = 'François Ajenstat';
GO