-- Detach any products from the seeded 3C categories, then remove them.
UPDATE product SET category_id = NULL
WHERE category_id IN (SELECT id FROM category WHERE path <@ 'electronics');

DELETE FROM category WHERE path <@ 'electronics';

DROP TABLE IF EXISTS kind_field;

ALTER TABLE category DROP COLUMN IF EXISTS archive_kind;
