

def delete_firewall_apikey(session_key):
    'Given a splunk session_key delete the firewall API key in the Splunk password store'
    try:
        entity.deleteEntity(['admin', 'passwords'], ':firewall_api_key:', namespace=APPNAME, owner='nobody', sessionKey=session_key)
    except ResourceNotFound:
        pass
    except Exception as e:
        exit_with_error(('Could not delete %s firewall apikey from splunk. Error: %s' % (APPNAME, str(session_key))))

dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/common.py delete_firewall_apikey/VarMisuse@67/156 `e`->`session_key`