remove unnecessary generated scaffolds