# Workspace org workspace clear

`POST /organizations/{id}/workspaces/{wid}/clear` · Rivier · workspace

Remove the data of some areas, or all of them, and keep the workspace, its settings, keys, members, plan and domains.

- Scope: workspace:admin
- Graphql: Mutation.workspaceOrgWorkspaceClear
- Sdk: workspace.orgWorkspace.clear
- Cli: workspace org workspace clear

## Parameters

- `id` (path, required), string
- `wid` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "areas": {
      "anyOf": [
        {
          "type": "string",
          "const": "everything"
        },
        {
          "type": "array",
          "items": {
            "type": "string",
            "maxLength": 40
          },
          "maxItems": 20
        }
      ]
    },
    "confirmName": {
      "type": "string",
      "maxLength": 400
    },
    "acknowledgeIrreversible": {
      "type": "boolean",
      "const": true
    }
  },
  "required": [
    "areas",
    "confirmName",
    "acknowledgeIrreversible"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/organizations/{id}/workspaces/{wid}/clear' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "areas": "everything",
  "confirmName": "string",
  "acknowledgeIrreversible": true
}'
```
