# Reset Workspace

## Reset Your Workspace Sandbox

{% hint style="info" %}
This method is only available on Sandbox Workspaces
{% endhint %}

## Reset the sandbox on this workspace

<mark style="color:green;">`POST`</mark> `https://connect.getseam.com/workspaces/reset_sandbox`

Resetting a Sandbox Workspace clears all the accounts and devices on the Workspace

#### Headers

| Name                                            | Type   | Description        |
| ----------------------------------------------- | ------ | ------------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer \<API\_KEY> |

{% tabs %}
{% tab title="200: OK Workspace successfully reset" %}

```javascript
{
  "message": "Successfully reset workspace sandbox",
  "ok": true
}
```

{% endtab %}

{% tab title="400: Bad Request Workspace is not a Sandbox" %}

```javascript
{
    "type": "workspace_not_sandbox",
    "message": "can only reset sandbox on sandbox workspaces",
}
```

{% endtab %}
{% endtabs %}

### Code Example

{% tabs %}
{% tab title="Python" %}

```python
seam.workspaces.reset_sandbox()

# None
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
await seam.workspaces.resetSandbox()

// { message: 'Successfully reset workspace sandbox', ok: true }
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
seam.workspaces.reset_sandbox

# {"message"=>"Successfully reset workspace sandbox", "ok"=>true}
```

{% endtab %}
{% endtabs %}

### Parameters

This method doesn't take any parameters.

### Response

This section shows the JSON response returned by the API. Since each language encapsulates this response inside objects specific to that language and/or implementation, the actual type in your language might differ from what’s written here.

#### JSON format

{% tabs %}
{% tab title="JSON" %}

```json
{
  "message": "Successfully reset workspace sandbox",
  "ok": true
}
```

{% endtab %}
{% endtabs %}
