--- title: "sp_drop_agent_profile (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/06/2017" ms.prod: sql ms.prod_service: "database-engine" ms.reviewer: "" ms.technology: replication ms.topic: "language-reference" f1_keywords: - "sp_drop_agent_profile" - "sp_drop_agent_profile_TSQL" helpviewer_keywords: - "sp_drop_agent_profile" ms.assetid: b884f9ef-ae89-4cbc-a917-532c3ff6ed41 author: stevestein ms.author: sstein --- # sp_drop_agent_profile (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Drops a profile from the **MSagent_profiles** table. This stored procedure is executed at the Distributor on any database. ![Topic link icon](../../database-engine/configure-windows/media/topic-link.gif "Topic link icon") [Transact-SQL Syntax Conventions](../../t-sql/language-elements/transact-sql-syntax-conventions-transact-sql.md) ## Syntax ``` sp_drop_agent_profile [ @profile_id = ] profile_id ``` ## Arguments `[ @profile_id = ] profile_id` Is the ID of the profile to be dropped. *profile_id* is **int**, with no default. ## Return Code Values **0** (success) or **1** (failure) ## Remarks **sp_drop_agent_profile** is used in all types of replication. The parameters of the given profile are also dropped from the **MSagent_parameters** table. ## Permissions Only members of the **sysadmin** fixed server role can execute **sp_drop_agent_profile**. ## See Also [sp_add_agent_profile (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-add-agent-profile-transact-sql.md) [sp_change_agent_profile (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-change-agent-profile-transact-sql.md) [sp_help_agent_profile (Transact-SQL)](../../relational-databases/system-stored-procedures/sp-help-agent-profile-transact-sql.md) [System Stored Procedures (Transact-SQL)](../../relational-databases/system-stored-procedures/system-stored-procedures-transact-sql.md)