USE msdb
select * from sysmaintplan_plans
select * from sysmaintplan_log
select * from sysmaintplan_subplans
delete from sysmaintplan_log where plan_id = ‘’
delete from sysmaintplan_subplans where subplan_id =‘’
delete from sysmaintplan_subplans where plan_id = ‘’