[BUG] No way to delete Claude Code environments from Claude Desktop

Open 💬 19 comments Opened Nov 24, 2025 by cowwoc

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

You can create a new environment using the "Add Environment" option, and you can update existing environments but there does not seem to be a way to delete existing environments.

What Should Happen?

The settings panel for an individual environment should provide a way to delete it.

Error Messages/Logs

Steps to Reproduce

See description

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.51

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

Windows Terminal

Additional Information

_No response_

View original on GitHub ↗

19 Comments

github-actions[bot] · 6 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

jacobaustin123 · 6 months ago

This is still an issue, this should probably be fixed.

aserdargun · 6 months ago

I hit this problem as well.

xgreymx · 6 months ago

Still an issue.

privacyguy123 · 5 months ago

Still an issue

trevthefoolish · 5 months ago

screams in OCD

yellowfleece · 5 months ago

I created an obscene environment name and now scrambling to delete 🙃

agentgill · 5 months ago

still an issue

ezra-gocci · 5 months ago

It can be renamed though, so my environment list is filled with names comprised of different number of underscores

ArtemYurov · 4 months ago

It is also necessary to remove unnecessary environments.

phDsud0 · 4 months ago

Still an issue. The OCD in me is going crazy. Please fix.

dbogatic · 4 months ago

Still an issue

TSloper-SMTC · 4 months ago

Please fix this. This is amatuer hour stuff.

hengjq · 3 months ago

Still an issue

I-T-D · 3 months ago

Still an issue, seems like a massive oversight

ronerizon · 3 months ago

in the meantime if someone wants a way to clear all environments go to Claude
then open console, copy the code, replace YOUR_ORG_ID with your organization id you can find it in the network tab:

const orgId = "YOUR_ORG_ID";
let deleted = 0;
let afterId = null;

while (true) {
  const url = `/v1/environment_providers/private/organizations/${orgId}/environments` +
    (afterId ? `?after_id=${afterId}` : '');
  const resp = await fetch(url, { credentials: 'include' });
  const data = await resp.json();
  const envList = data.environments;

  if (!envList || envList.length === 0) break;

  for (const env of envList) {
    const id = env.id || env.uuid || env.environment_id;
    const name = env.name || id;
    const del = await fetch(
      `/v1/environment_providers/private/organizations/${orgId}/environments/${id}/delete`,
      { method: 'POST', credentials: 'include' }
    );
    deleted++;
    if (del.ok) {
      console.log(`✅ [${deleted}] Deleted: ${name}`);
    } else {
      console.log(`❌ [${deleted}] Failed: ${name} (${del.status})`);
    }
    await new Promise(r => setTimeout(r, 500));
  }

  if (!data.has_more) break;
  afterId = data.last_id;
}

console.log(`Done! Deleted ${deleted} environments.`);
gaurav9372 · 1 month ago

still an issue

sappy-dinge · 18 days ago

Still?! 😭

Jizahlab · 15 days ago

Still an issue