# Delete a context.

**DELETE /contexts/{context}**

Deletes the specified context if it is empty. Subjects must be permanently deleted before the context can be deleted.


## Servers
- http://localhost:8081: http://localhost:8081 ()



## Parameters

### Path parameters
- **context** (string)
  The context to delete (e.g., .staging). Cannot delete the default context.



## Responses
### 204
No Content

### 404
Not Found: Context not found

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)


### 422
Unprocessable Entity: Context not empty

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)


### 500
Internal Server Error

#### Body: application/json (object)
- **error_code** (integer)

- **message** (string)



[Powered by Bump.sh](https://bump.sh)
