def delete_identity_pools(IdentityPoolName, IdentityPoolId=None, region=None, key=None, keyid=None, profile=None):
 conn = _get_conn(region=region, key=key, keyid=keyid, profile=profile)
 try:
  ids = _find_identity_pool_ids(IdentityPoolName, IdentityPoolId, conn)
  count = 0
  if ids:
   for pool_id in ids:
    conn.delete_identity_pool(IdentityPoolId=pool_id)
    count += 1
   return {'deleted': True, 'count': count}
  else:
   return {'deleted': False, 'count': count}
 except ClientError as e:
  return {'deleted': False, 'error': salt.utils.boto3.get_error(e)}

def delete_identity_pools ( IdentityPoolName , IdentityPoolId = None , region = None , key = None , keyid = None , profile = None ) : conn = _get_conn ( region = region , key = key , keyid = keyid , profile = profile ) try : ids = _find_identity_pool_ids ( IdentityPoolName , IdentityPoolId , conn ) count = 0 if ids : for pool_id in ids : conn . delete_identity_pool ( IdentityPoolId = pool_id ) count += 1 return { 'deleted' : True , 'count' : count } else : return { 'deleted' : False , 'count' : count } except ClientError as e : return { 'deleted' : False , 'error' : salt . utils . boto3 . get_error ( e ) }
given an identity pool name .