diff --git a/README.md b/README.md index 9186e075..8e9fc8c9 100644 --- a/README.md +++ b/README.md @@ -151,8 +151,12 @@ When you run caprover_deploy.sh without arguments, it will deploy the current br ### Cleanup caprover feature branch deployments -``` +```bash +# by default it will delete all vbv-feature-* apps python caprover_cleanup.py + +# or specify a specific app regex and delete without confirmation +python caprover_cleanup.py --automated -a 'vbv-bugfix*' ``` ## IntelliJ Configuration diff --git a/caprover_cleanup.py b/caprover_cleanup.py index 43333353..a7e8878c 100644 --- a/caprover_cleanup.py +++ b/caprover_cleanup.py @@ -7,8 +7,6 @@ from environs import Env logging.basicConfig(level=logging.DEBUG) env = Env() -env.read_env("./env_secrets/caprover_feature.env", recurse=False, override=True) -app_name = "vbv-feature-caprover-auto-deploy4" cap = caprover_api.CaproverAPI( dashboard_url=env.str("CAPROVER_DOMAIN"),