DROP ENDPOINT (Transact-SQL)
Drops an existing endpoint.
User must be a member of the sysadmin fixed server role, the owner of the endpoint, or have been granted CONTROL permission on the endpoint.
For more information, see GRANT Endpoint Permissions (Transact-SQL).
The following example removes a previously created endpoint called
DROP ENDPOINT sql_endpoint;