# STOP SANDBOX

## Syntax <a href="#synopsis" id="synopsis"></a>

```sql
STOP SANDBOX;
```

## Description <a href="#description" id="description"></a>

This stops a currently running sandbox in the user’s environment.

## Examples

When a sandbox is stopped, it transitions to the `STOPPING` status:

```sh
demodb.public/demostore# STOP SANDBOX;
+---------+---------+----------+------------------------------------------+
|  Type   |  Name   |  Command |  Summary                                 |
+=========+=========+==========+==========================================+
| sandbox | sandbox | DROP     | sandbox was successfully marked for stop |
+---------+---------+----------+------------------------------------------+
demodb.public/demostore# DESCRIBE SANDBOX;
+----------+--------------------------------------+---------------+-----------------+------------------------+-------------------------------+-------------------------------+
|  Status  |  Id                                  |  Region       |  Error Messages |  Function Sources      |  Created At                   |  Updated At                   |
+==========+======================================+===============+=================+========================+===============================+===============================+
| STOPPING | ccff4480-1970-41fd-969e-34c40928eac6 | AWS us-east-1 | []              | ["demofnsrc","my_src"] | 2024-07-18 15:30:50 +0000 UTC | 2024-07-18 15:32:39 +0000 UTC |
+----------+--------------------------------------+---------------+-----------------+------------------------+-------------------------------+-------------------------------+
```

When the sandbox is fully stopped, it transitions to the `STOPPED` status:

```sh
demodb.public/demostore# DESCRIBE SANDBOX;
+---------+-----+---------+-----------------+-------------------+-------------+-------------+
|  Status |  Id |  Region |  Error Messages |  Function Sources |  Created At |  Updated At |
+=========+=====+=========+=================+===================+=============+=============+
| STOPPED |     |         |                 |                   | <null>      | <null>      |
+---------+-----+---------+-----------------+-------------------+-------------+-------------+
```
