---
title: "exo compute instance security-group remove"
description: "Remove a Compute instance from Security Groups"
url: https://community.exoscale.com/reference/cli/exo/compute/instance/security-group/remove/
section: reference
last_updated: 2026-10-14
---
> For AI agents: the documentation index is at https://community.exoscale.com/llms.txt. Every page is available as markdown at `<page URL>index.md` or with `Accept: text/markdown`.

# exo compute instance security-group remove

### Description

This command removes a Compute instance from Security Groups.

Supported output template annotations: .ID, .Name, .CreationDate, .InstanceType, .Template, .Zone, .AntiAffinityGroups, .DeployTarget, .SecurityGroups, .PrivateInstance, .ElasticIPs, .PublicIPAssignment, .IPAddress, .IPv6Address, .Vpc, .VpcSubnets, .PrivateNetworks, .IpForwarding, .SSHKeys, .DiskSize, .State, .Labels, .SecureBoot, .Tpm, .ReverseDNS, .AppConsistentSnapshot

```
exo compute instance security-group remove INSTANCE-NAME|ID SECURITY-GROUP-NAME|ID... [flags]
```

### Options

| Option | Description |
| --------- | ------------ |
| `--help, -h` | help for remove |
| `--zone, -z` | instance zone |


### Options inherited from parent commands

| Option | Description |
| --------- | ------------ |
| `--config, -C` | Specify an alternate config file [env EXOSCALE_CONFIG] |
| `--output-format, -O` | Output format (table\|json\|text), see &#34;exo output --help&#34; for more information |
| `--output-template` | Template to use if output format is &#34;text&#34; |
| `--quiet, -Q` | Quiet mode (disable non-essential command output) |
| `--timeout` | Per-zone timeout for list operations; -1s disables timeout [env EXOSCALE_TIMEOUT] |
| `--use-account, -A` | Account to use in config file [env EXOSCALE_ACCOUNT] |


### Related Commands

* [security-group](https://community.exoscale.com/reference/cli/exo/compute/instance/security-group/index.md)	 - Manage Compute instance Security Groups


