---
title: "Delete an Article | Microsoft Docs"
ms.custom: ""
ms.date: "06/13/2017"
ms.prod: "sql-server-2014"
ms.reviewer: ""
ms.technology: replication
ms.topic: conceptual
dev_langs:
- "TSQL"
helpviewer_keywords:
- "articles [SQL Server replication], dropping"
- "sp_droparticle"
- "sp_dropmergearticle"
- "deleting articles"
- "removing articles"
- "dropping articles"
ms.assetid: 185b58fc-38c0-4abe-822e-6ec20066c863
author: MashaMSFT
ms.author: mathoma
manager: craigg
---
# Delete an Article
This topic describes how to delete an article in [!INCLUDE[ssCurrent](../../../includes/sscurrent-md.md)] by using [!INCLUDE[tsql](../../../includes/tsql-md.md)] or Replication Management Objects (RMO). For information about the conditions under which articles can be dropped and whether dropping an article requires a new snapshot or the reinitialization of subscriptions, see [Add Articles to and Drop Articles from Existing Publications](add-articles-to-and-drop-articles-from-existing-publications.md).
## Using Transact-SQL
Articles can be deleted programmatically using replication stored procedures. The stored procedures that you use depend on the type of publication to which the article belongs.
#### To delete an article from a snapshot or transactional publication
1. Execute [sp_droparticle (Transact-SQL)](/sql/relational-databases/system-stored-procedures/sp-droparticle-transact-sql) to delete an article, specified by **\@article**, from a publication, specified by **\@publication**. Specify a value of **1** for **\@force_invalidate_snapshot**.
2. (Optional) To remove the published object from the database entirely, execute the `DROP ` command at the Publisher on the publication database.
#### To delete an article from a merge publication
1. Execute [sp_dropmergearticle (Transact-SQL)](/sql/relational-databases/system-stored-procedures/sp-dropmergearticle-transact-sql) to delete an article, specified by **\@article**, from a publication, specified by **\@publication**. If necessary, specify a value of **1** for **\@force_invalidate_snapshot** and a value of **1** for **\@force_reinit_subscription**.
2. (Optional) To remove the published object from the database entirely, execute the `DROP ` command at the Publisher on the publication database.
### Examples (Transact-SQL)
The following example deletes an article from a transactional publication. Because this change invalidates the existing snapshot, a value of **1** is specified for the **\@force_invalidate_snapshot** parameter.
[!code-sql[HowTo#sp_droparticle](../../../snippets/tsql/SQL15/replication/howto/tsql/droptranpub.sql#sp_droparticle)]
The following example deletes two articles from a merge publication. Because these changes invalidate the existing snapshot, a value of **1** is specified for the **\@force_invalidate_snapshot** parameter.
[!code-sql[HowTo#sp_dropmergearticle](../../../snippets/tsql/SQL15/replication/howto/tsql/dropmergepub.sql#sp_dropmergearticle)]
[!code-sql[HowTo#sp_dropmergearticle](../../../snippets/tsql/SQL15/replication/howto/tsql/dropmergearticles.sql#sp_dropmergearticle)]
## Using Replication Management Objects (RMO)
You can delete articles programmatically by using Replication Management Objects (RMO). The RMO classes you use to delete an article depend on the type of publication to which the article belongs.
#### To delete an article that belongs to a snapshot or transactional publication
1. Create a connection to the Publisher by using the class.
2. Create an instance of the class.
3. Set the , , and properties.
4. Set the connection from step 1 for the property.
5. Check the property to verify that the article exists. If the value of this property is `false`, either the article properties in step 3 were defined incorrectly or the article does not exist.
6. Call the method.
7. Close all connections.
#### To delete an article that belongs to a merge publication
1. Create a connection to the Publisher by using the class.
2. Create an instance of the class.
3. Set the , , and properties.
4. Set the connection from step 1 for the property.
5. Check the property to verify that the article exists. If the value of this property is `false`, either the article properties in step 3 were defined incorrectly or the article does not exist.
6. Call the method.
7. Close all connections.
## See Also
[Add Articles to and Drop Articles from Existing Publications](add-articles-to-and-drop-articles-from-existing-publications.md)
[Replication System Stored Procedures Concepts](../concepts/replication-system-stored-procedures-concepts.md)