> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vertracloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Workspace

> Deletes an workspace by its ID.

<ParamField path="id" type="string" required>
  The ID of the workspace to delete.
</ParamField>

### Response

<ResponseField name="message" type="string">
  A message indicating the result of the operation (e.g., `ORGANIZATION_DELETED`).
</ResponseField>

<ResponseExample>
  ```json Response theme={null}
  {
    "message": "ORGANIZATION_DELETED"
  }
  ```
</ResponseExample>

### Error Responses

<ResponseField name="code" type="string">
  The error code indicating the reason for failure. Possible values:

  * `UNAUTHORIZED`: The user is not authenticated or lacks sufficient permissions.
  * `ORGANIZATION_NOT_FOUND`: The specified workspace does not exist or the user is not the owner.
</ResponseField>

<ResponseField name="message" type="string">
  A descriptive message providing additional details about the error.
</ResponseField>

<ResponseExample>
  ```json Error Response (403) theme={null}
  {
    "code": "UNAUTHORIZED"
  }
  ```

  ```json Error Response (404) theme={null}
  {
    "code": "ORGANIZATION_NOT_FOUND"
  }
  ```
</ResponseExample>
