Delete ghost classes