sp_delete_log_shipping_primary_secondary (Transact-SQL)
SQL Server 2008 R2
Removes the entry for a secondary database on the primary server.
In the following example, sp_delete_log_shipping_primary_secondary is used to delete the secondary database LogShipAdventureWorks2008R2 from the secondary server FLATIRON.
EXEC master.dbo.sp_delete_log_shipping_primary_secondary @primary_database = N'AdventureWorks2008R2' ,@secondary_server = N'FLATIRON' ,@secondary_database = N'LogShipAdventureWorks2008R2' GO