# Voice platform session erase

`POST /voice/platform/sessions/erase` · Rivier · voice

Erase the kept words of one platform session, or of every session whose metadata has the given values. The figures stay.

- Scope: voice:write
- Graphql: Mutation.voicePlatformSessionErase
- Sdk: voice.platformSession.erase
- Cli: voice platform session erase

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": [
          "string",
          "number",
          "boolean"
        ]
      }
    }
  },
  "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/voice/platform/sessions/erase' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "id": "string",
  "metadata": {}
}'
```
