feat: add organization delete command to cli (#21940)

The API endpoints existed for this already, so this PR just adds CLI
functionality which uses those API endpoints.

closes #21891 

Generated with the help of Mux
This commit is contained in:
Rowan Smith
2026-02-05 19:35:20 +11:00
committed by GitHub
parent dc633e22a3
commit e3ce3c342a
8 changed files with 234 additions and 0 deletions
+1
View File
@@ -21,6 +21,7 @@ coder organizations [flags] [subcommand]
|------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [<code>show</code>](./organizations_show.md) | Show the organization. Using "selected" will show the selected organization from the "--org" flag. Using "me" will show all organizations you are a member of. |
| [<code>create</code>](./organizations_create.md) | Create a new organization. |
| [<code>delete</code>](./organizations_delete.md) | Delete an organization |
| [<code>members</code>](./organizations_members.md) | Manage organization members |
| [<code>roles</code>](./organizations_roles.md) | Manage organization roles. |
| [<code>settings</code>](./organizations_settings.md) | Manage organization settings. |
+24
View File
@@ -0,0 +1,24 @@
<!-- DO NOT EDIT | GENERATED CONTENT -->
# organizations delete
Delete an organization
Aliases:
* rm
## Usage
```console
coder organizations delete [flags] <organization_name_or_id>
```
## Options
### -y, --yes
| | |
|------|-------------------|
| Type | <code>bool</code> |
Bypass confirmation prompts.