This stored procedure removes the information about the specified primary server from the secondary server, and removes the copy job and restore job from the secondary.
sp_delete_log_shipping_secondary_primary must be run from the master database on the secondary server. This stored procedure does the following:
Deletes the copy and restore jobs for the secondary ID.
Deletes the entry in log_shipping_secondary.
Calls sp_delete_log_shipping_alert_job on the monitor server.