delete old core