Skip to content

fix: allow deleting teammates instances from the CLI - #523

Merged
stephahart merged 1 commit into
mainfrom
BREV-13367/delete-teammate-instances-using-cli
Nov 4, 2026
Merged

stephahart merged 1 commit into
mainfrom
BREV-13367/delete-teammate-instances-using-cli

Conversation

@vivansh12

Copy link
Copy Markdown
Contributor

Issue
In an org member or admin can see teammates instances with brev ls --all, but brev delete on one of them fails with "instance not found". The same delete works in the console.

Root cause
brev delete only searched the instances the user created or that were shared with them. The backend already allows the delete, but the CLI never sent the request.

Fix
When the instance isn't one of the user's own, brev delete now looks it up across the whole org. If exactly one instance matches the name or ID, it is deleted.

@vivansh12 vivansh12 self-assigned this Nov 4, 2026
@vivansh12
vivansh12 marked this pull request as ready for review November 4, 2026 13:05
@vivansh12
vivansh12 requested a review from a team as a code owner November 4, 2026 13:05
@stephahart
stephahart merged commit 1388642 into main Nov 4, 2026
11 checks passed
@stephahart
stephahart deleted the BREV-13367/delete-teammate-instances-using-cli branch November 4, 2026 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants