import json


def rule(event):
    if any(
        [
            "clear logging" in json.dumps(event.to_dict()),
            "clear archive" in json.dumps(event.to_dict()),
        ]
    ):
        return True
    return False
