

def pop(key, default=None):
    '\n    Pop (return & delete) a value from the minion datastore\n\n    .. versionadded:: 2015.5.2\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt \'*\' data.pop <key> "there was no val"\n    '
    store = load()
    val = store.pop(key, default)
    dump(store)
    return val

dataset/ETHPy150Open saltstack/salt/salt/modules/data.py pop/original