# nsc destroy

Destroy an instance.

`destroy` destroys a Namespace instance by its instance id.

## Usage

```bash theme={null}
nsc destroy <instance-id> [--force]
```

### Example

The following example creates a new instance with the default machine shape (4 CPUs and 8 GiB of memory).

#### 1. Create an ephemeral instance

Create an ephemeral instance and note its ID:

```bash theme={null}
nsc create
```

```text nocopy Output theme={null}
Created instance "h9am86n6gi25m"
  deadline: 2023-04-25T08:48:38Z
```

#### 2. Destroy the instance

Destroy the instance using its ID:

```bash theme={null}
nsc destroy h9am86n6gi25m --force
```

## Options

### --force

Skip the confirmation when destroying the instance.
