> For the complete documentation index, see [llms.txt](https://docs.rumi.systems/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.rumi.systems/rumi-cli/commands/cloud/aws/delete-network.md).

# delete-network

Delete a Rumi network and all associated resources. This terminates all instances and endpoints in the network and removes the VPC.

## Syntax

```bash
rumi cloud aws delete-network \
  --profile <profile> \
  --name <name> \
  --key-pair <keypair> \
  [--region <region>]
```

## Options

| Option       | Short | Description                         | Default     |
| ------------ | ----- | ----------------------------------- | ----------- |
| `--profile`  | `-p`  | AWS profile to use                  | Required    |
| `--region`   | `-r`  | AWS region                          | `us-east-1` |
| `--name`     | `-n`  | Name of the network (VPC) to delete | Required    |
| `--key-pair` | `-k`  | The network's EC2 key pair          | Required    |

## Example

```bash
rumi cloud aws delete-network \
  --profile my-aws-profile \
  --name my-network \
  --key-pair my-keypair
```

{% hint style="warning" %}
This terminates all instances and endpoints in the network and deletes the VPC.
{% endhint %}

## See Also

* [create-network](/rumi-cli/commands/cloud/aws/create-network.md)
* [list-networks](/rumi-cli/commands/cloud/aws/list-networks.md)
