DELETE FROM ops.compliance_dictionary_versions
WHERE dictionary_id IN (
    SELECT id
    FROM ops.compliance_dictionaries
    WHERE code IN ('ad_law_extreme', 'political_sensitive', 'violence_pornography', 'generic_prohibited')
);

DELETE FROM ops.compliance_dictionary_terms
WHERE dictionary_id IN (
    SELECT id
    FROM ops.compliance_dictionaries
    WHERE code IN ('ad_law_extreme', 'political_sensitive', 'violence_pornography', 'generic_prohibited')
);

DELETE FROM ops.compliance_dictionaries
WHERE code IN ('ad_law_extreme', 'political_sensitive', 'violence_pornography', 'generic_prohibited');

UPDATE ops.compliance_policies
SET enabled_dictionaries = '[]'::jsonb,
    revision = revision + 1,
    updated_at = NOW()
WHERE id = 1;
