The log shipping primary database
1. Get the primary and secondary database names and secondary servers from the following tables:
select * from msdb.dbo.log_shipping_primary_databases
select * from msdb.dbo.log_shipping_primary_secondaries
2. Run the following store procedures on the primary server
USE master
EXEC sp_delete_log_shipping_primary_database @database= '
EXEC sp_delete_log_shipping_primary_secondary @primary_database='
3. If the secondary server and database are still active execute:
USE master
EXEC sp_delete_log_shipping_secondary_database @secondary_database=''
EXEC sp_delete_log_shipping_secondary_primary @primary_database='',@primary_server=''
4. Make sure it got deleted from the monitoring database
select * from msdb.dbo.log_shipping_monitor_primary