--- title: "DROP ENDPOINT (Transact-SQL)" description: DROP ENDPOINT (Transact-SQL) author: markingmyname ms.author: maghan ms.date: "03/06/2017" ms.service: sql ms.subservice: t-sql ms.topic: reference f1_keywords: - "DROP_ENDPOINT_TSQL" - "DROP ENDPOINT" helpviewer_keywords: - "removing endpoints" - "endpoints [SQL Server], removing" - "deleting endpoints" - "DROP ENDPOINT statement" - "dropping endpoints" dev_langs: - "TSQL" --- # DROP ENDPOINT (Transact-SQL) [!INCLUDE [SQL Server](../../includes/applies-to-version/sqlserver.md)] Drops an existing endpoint. :::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: [Transact-SQL syntax conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ```syntaxsql DROP ENDPOINT endPointName ``` ## Arguments *endPointName* Is the name of the endpoint to be removed. ## Remarks The ENDPOINT DDL statements cannot be executed inside a user transaction. ## Permissions 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. ## Examples The following example removes a previously created endpoint called `sql_endpoint`. ```sql DROP ENDPOINT sql_endpoint; ``` ## See Also [CREATE ENDPOINT (Transact-SQL)](../../t-sql/statements/create-endpoint-transact-sql.md) [ALTER ENDPOINT (Transact-SQL)](../../t-sql/statements/alter-endpoint-transact-sql.md) [EVENTDATA (Transact-SQL)](../../t-sql/functions/eventdata-transact-sql.md)