A magazine retracted an essay with ‘inappropriate and invasive content’ about Pete Buttigieg after sparking backlash