def METHOD_NAME(args):
    d = args.__dict__
    if not d['contigs_db'] and not d['pan_or_profile_db']:
        raise ConfigError("Please provide either a contigs database (--contigs-db) or a profile/pan "
                          "database (--pan-or-profile-db)")
    if d['contigs_db'] and d['pan_or_profile_db']:
        raise ConfigError("You provided a contigs db (--contigs-db) and a profile/pan "
                          "db (--pan-or-profile-db). Please provide only one.")
    table_for_additional_data = MiscDataTableFactory(args)
    if args.list_available_keys:
        table_for_additional_data.list_data_keys()
        sys.exit(0)
    keys_to_remove = [k for k in args.keys_to_remove.split(',')] if args.keys_to_remove else []
    groups_to_remove = [k for k in args.groups_to_remove.split(',')] if args.groups_to_remove else []
    table_for_additional_data.remove(data_keys_list=keys_to_remove, data_groups_list=groups_to_remove)