def delete_if_exists()

in tools/k8s-rbac-policies/rbac_patch.py [0:0]


def delete_if_exists(dictionary: dict, key: str):
    if dictionary.get(key, None) is not None:
        del dictionary[key]