def delete_instance_profile(name, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 if (not instance_profile_exists(name, region, key, keyid, profile)):
  return True
 try:
  conn.delete_instance_profile(name)
  log.info('Deleted {0} instance profile.'.format(name))
 except boto.exception.BotoServerError as e:
  log.debug(e)
  msg = 'Failed to delete {0} instance profile.'
  log.error(msg.format(name))
  return False
 return True

def delete_instance_profile ( name , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) if ( not instance_profile_exists ( name , region , key , keyid , profile ) ) : return True try : conn . delete_instance_profile ( name ) log . info ( 'Deleted {0} instance profile.' . format ( name ) ) except boto . exception . BotoServerError as e : log . debug ( e ) msg = 'Failed to delete {0} instance profile.' log . error ( msg . format ( name ) ) return False return True
delete an instance profile .