deleteExcessCode