def delete_instance_type_info(metadata, *prefixes):
 for key in system_metadata_instance_type_props.keys():
  for prefix in prefixes:
   to_key = ('%sinstance_type_%s' % (prefix, key))
   del metadata[to_key]
 return metadata

def delete_instance_type_info ( metadata , * prefixes ) : for key in system_metadata_instance_type_props . keys ( ) : for prefix in prefixes : to_key = ( '%sinstance_type_%s' % ( prefix , key ) ) del metadata [ to_key ] return metadata
delete instance_type information from instances system_metadata by prefix .