def METHOD_NAME(cfg: Config):
    """Clear all community ads."""
    events = get_events(cfg)
    if are_you_sure("clear all ads (count: {})".format(len(events["ads"])), cfg):
        events["ads"] = []
        save_event_file(cfg, json.dumps(events))