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

<Steps titleSize="h4">
  <Step title="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
    ```
  </Step>

  <Step title="Destroy the instance">
    Destroy the instance using its ID:

    ```bash theme={null}
    nsc destroy h9am86n6gi25m --force
    ```
  </Step>
</Steps>

## Options

<h3 id="--force">
  \--force
</h3>

Skip the confirmation when destroying the instance.
