---
title: "vakna delete: delete boxes"
description: "Delete boxes; this can't be undone."
command: "vakna delete"
generated: scripts/generate.ts
verified:
  cli: "0.0.0-mock"
  date: "2026-10-20"
---

`vakna delete`: delete boxes; this can't be undone.

## Synopsis

```sh
vakna delete <box>...
```

Also `vakna rm`.

## Flags

| Flag | Default | What it does |
| -- | -- | -- |
| `--format <format>` | `text` | text, or json: one JSON object per line |
| `--json` | `off` | the same as --format json |
| `-h, --help` | `off` | this help |

## Examples

### Example

```sh
$ vakna delete api
```

```prints
deleted api
```

Exit code 0.

### Another example

```sh
$ vakna rm box-1 box-2
```

```prints
vakna: no box "box-1"
hint: vakna list  # it lists your boxes
```

Exit code 1.

### When it fails

```sh
$ vakna delete apj
```

```prints
vakna: no box "apj"
hint: vakna list  # did you mean api?
```

Exit code 1.

## Exit codes

| Code | Meaning |
| -- | -- |
| 0 | ok |
| 1 | vakna failed; under shell, run, try or fork, the command in the box failed |
| 2 | usage: a missing argument, an unknown flag or command |

## JSON output

With `--format json` (or `--json`) every line is one JSON object. `v` is the format's version; `mocked` marks numbers from the mock.

```sh
$ vakna delete api --json
```

```prints
{"v":1,"event":"deleted","box":"api","id":"sbx_eu1a_01JB7X9K3M4N5P6Q7R8S9T0V1W","mocked":true}
```

## Errors

- [`vakna: unknown command, unknown flag or missing argument`](https://vakna.com/docs/errors/usage): Run `vakna <command> --help` and fix the command line it points to.
- [`vakna: no box "<box>"`](https://vakna.com/docs/errors/not_found): Run `vakna list` and use a name from it.
- [`vakna: "<id>" matches more than one box`](https://vakna.com/docs/errors/ambiguous): Use the box's name or its full id; `vakna list` shows both.

## --help

This page and the help text come from one definition.

```prints
vakna delete · delete boxes; this can't be undone

usage
  vakna delete <box>...

aliases
  rm

flags
  --format <format>  text, or json: one JSON object per line  (default: text)
  --json             the same as --format json  (default: off)
  -h, --help         this help  (default: off)

examples
  vakna delete api
  vakna rm box-1 box-2

exit codes
  0  ok
  1  vakna failed; under shell, run, try or fork, the command in the box failed
  2  usage: a missing argument, an unknown flag or command
```
