def rule(event):
    if any(
        [
            all(
                [
                    event.deep_get("EventType", default="") == "DeleteValue",
                    "\\Microsoft\\Terminal Server Client\\Default\\MRU"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
            all(
                [
                    event.deep_get("EventType", default="") == "DeleteKey",
                    "\\Microsoft\\Terminal Server Client\\Servers\\"
                    in event.deep_get("TargetObject", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
