capabilities.work

Stop environments last deployed to before a date

One step with GitLab. We can help you get access.

Get something done

Stop environments last deployed to before a date

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Environments API lets you stop environments last deployed to before a date in a single step (POST /api/v4/projects/{id}/environments/stop_stale). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I stop environments that haven't been touched in a while?
  • Can I exclude protected environments when stopping stale ones?
Say it to your AI assistant
  • Stop all environments in project {id} last modified before {before}.
  • Stop stale environments in project {id}.
For your developer

POST /api/v4/projects/{id}/environments/stop_stale in GitLab REST Environments API. Full spec on APIs.io.