--- title: "DROP CERTIFICATE (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "03/06/2017" ms.prod: "sql" ms.prod_service: "database-engine, sql-database, sql-data-warehouse, pdw" ms.service: "" ms.component: "t-sql|statements" ms.reviewer: "" ms.suite: "sql" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "DROP CERTIFICATE" - "DROP_CERTIFICATE_TSQL" dev_langs: - "TSQL" helpviewer_keywords: - "certificates [SQL Server], removing" - "removing certificates" - "dropping certificates" - "DROP CERTIFICATE statement" - "deleting certificates" ms.assetid: 5704aa04-68a3-4b29-b62b-8868af487817 caps.latest.revision: 37 author: "edmacauley" ms.author: "edmaca" manager: "craigg" ms.workload: "On Demand" monikerRange: ">= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || = sqlallproducts-allversions" --- # DROP CERTIFICATE (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-all-md](../../includes/tsql-appliesto-ss2008-all-md.md)] Removes a certificate from the database. > [!IMPORTANT] > A backup of the certificate used for database encryption should be retained even if the encryption is no longer enabled on a database. Even though the database is not encrypted anymore, parts of the transaction log may still remain protected, and the certificate may be needed for some operations until the full backup of the database is performed. The certificate is also needed to be able to restore from the backups created at the time the database was encrypted. ![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 ``` DROP CERTIFICATE certificate_name ``` ## Arguments *certificate_name* Is the unique name by which the certificate is known in the database. ## Remarks Certificates can only be dropped if no entities are associated with them. ## Permissions Requires CONTROL permission on the certificate. ## Examples The following example drops the certificate `Shipping04` from the `AdventureWorks` database. ``` USE AdventureWorks2012; DROP CERTIFICATE Shipping04; ``` ## Examples: [!INCLUDE[ssSDWfull](../../includes/sssdwfull-md.md)] and [!INCLUDE[ssPDW](../../includes/sspdw-md.md)] The following example drops the certificate `Shipping04`. ``` USE master; DROP CERTIFICATE Shipping04; ``` ## See Also [BACKUP CERTIFICATE (Transact-SQL)](../../t-sql/statements/backup-certificate-transact-sql.md) [CREATE CERTIFICATE (Transact-SQL)](../../t-sql/statements/create-certificate-transact-sql.md) [ALTER CERTIFICATE (Transact-SQL)](../../t-sql/statements/alter-certificate-transact-sql.md) [Encryption Hierarchy](../../relational-databases/security/encryption/encryption-hierarchy.md) [EVENTDATA (Transact-SQL)](../../t-sql/functions/eventdata-transact-sql.md)