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(e)))
dataset/ETHPy150Open PaloAltoNetworks/SplunkforPaloAltoNetworks/bin/lib/common.py/delete_firewall_apikey/original