Enable foreign key checks before deleting categories so the delete cascade work as expected