# org delete sandbox

Delete a sandbox.

## Description for org delete sandbox

Salesforce CLI marks the org for deletion in the production org that contains the sandbox licenses and then deletes all local references to the org from your computer.

Specify a sandbox with either the username you used when you logged into it, or the alias you gave the sandbox when you created it. Run "sf org list" to view all your orgs, including sandboxes, and their aliases.

Both the sandbox and the associated production org must already be authenticated with the CLI to successfully delete the sandbox.

## Aliases for org delete sandbox

`env:delete:sandbox`

## Flags

| Flag Name (Long) | Flag Name (Short) | Description                                                                                                                                         |
| ---------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--flags-dir`    | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`         | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--no-prompt`    | `-p`              | **Type:** Boolean<br><br>Don't prompt the user to confirm the deletion.                                                                             |
| `--target-org`   | `-o`              | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for org delete sandbox

Delete a sandbox with alias my-sandbox:

```shell
sf org delete sandbox --target-org my-sandbox
```

Specify a username instead of an alias:

```shell
sf org delete sandbox --target-org myusername@example.com.qa
```

Delete the sandbox without prompting to confirm:

```shell
sf org delete sandbox --target-org my-sandbox --no-prompt
```
