DELETE FROM paliad.deadline_rules
 WHERE proceeding_type_id IN (
     SELECT id FROM paliad.proceeding_types
      WHERE code IN ('INF', 'REV', 'CCR', 'APM', 'APP', 'AMD', 'ZPO_CIVIL')
 );
