def delete_api_key(apiKey, region=None, key=None, keyid=None, profile=None):
 try:
  conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
  conn.delete_api_key(apiKey=apiKey)
  return {'deleted': True}
 except ClientError as e:
  return {'deleted': False, 'error': salt.utils.boto3.get_error(e)}

def delete_api_key ( apiKey , region = None , key = None , keyid = None , profile = None ) : try : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) conn . delete_api_key ( apiKey = apiKey ) return { 'deleted' : True } except ClientError as e : return { 'deleted' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
deletes a given apikey cli example: .