-- Remove Fristenrechner UI-facing proceeding types + rules.
-- Reverses 012. Schema columns (name_en) stay — they're harmless to keep
-- and removing them would require re-applying the DEFAULT '' backfill.

DELETE FROM paliad.deadline_rules
 WHERE proceeding_type_id IN (
     SELECT id FROM paliad.proceeding_types
      WHERE code IN ('UPC_INF','UPC_REV','UPC_PI','UPC_APP',
                     'DE_INF','DE_NULL',
                     'EPA_OPP','EPA_APP','EP_GRANT')
 );

DELETE FROM paliad.proceeding_types
 WHERE code IN ('UPC_INF','UPC_REV','UPC_PI','UPC_APP',
                'DE_INF','DE_NULL',
                'EPA_OPP','EPA_APP','EP_GRANT');
