diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index 2d6b74dd89..f2fac5fbba 100755 --- a/scripts/lib/zulip_tools.py +++ b/scripts/lib/zulip_tools.py @@ -37,19 +37,6 @@ BLUE = '\x1b[34m' MAGENTA = '\x1b[35m' CYAN = '\x1b[36m' -# Parent parser for cache cleaning scripts. -GENERIC_CACHE_SCRIPT_PARSER = argparse.ArgumentParser(add_help=False) -GENERIC_CACHE_SCRIPT_PARSER.add_argument( - "--threshold", dest="threshold_days", type=int, default=14, - nargs="?", metavar="", help="Any cache which is not in " - "use by a deployment not older than threshold days(current " - "installation in dev) and older than threshold days will be " - "deleted. (defaults to 14)") -GENERIC_CACHE_SCRIPT_PARSER.add_argument( - "--dry-run", dest="dry_run", action="store_true", - help="If specified then script will only print the caches " - "that it will delete/keep back. It will not delete any cache.") - def parse_cache_script_args(description): # type: (Text) -> argparse.Namespace parser = argparse.ArgumentParser(description=description)