> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.