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

# Delete Character

> Soft-deletes the character. In-progress live sessions are not interrupted. A deleted character cannot be used to create a new session.

<AccordionGroup>
  <Accordion title="Errors">
    Error responses use the same `{code, message, data}` envelope; a non-zero `code` identifies the error.

    | Case | Error code |
    | - | - |
    | The character does not exist, is deleted, or is not in the current workspace | `20005 not found` |
  </Accordion>
</AccordionGroup>


## OpenAPI

````yaml streaming-avatar/api-references/openapi.json DELETE /v1/characters/{character_id}
openapi: 3.1.0
info:
  title: Vivix Streaming Avatar API
  version: 1.0.0
  description: REST endpoints for Streaming Avatar sessions, voices, and characters.
servers:
  - url: https://api.vivix.ai
security:
  - bearerAuth: []
paths:
  /v1/characters/{character_id}:
    delete:
      summary: Delete Character
      description: >-
        Soft-deletes the character. In-progress live sessions are not
        interrupted. A deleted character cannot be used to create a new session.
      operationId: deleteCharacter
      parameters:
        - name: character_id
          in: path
          required: true
          schema:
            type: string
          description: Character id to delete.
          example: chr_a1b2c3d4e5f6789012345678abcdef01
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - message
                  - data
                properties:
                  code:
                    type: integer
                    description: '`0` on success; any other value is an error code.'
                  message:
                    type: string
                    description: '`success`, or an English error description.'
                  data:
                    type: object
                    properties:
                      character_id:
                        type: string
                        description: Id of the deleted character.
                      status:
                        type: string
                        description: Always `deleted`.
                    required:
                      - character_id
                      - status
              example:
                code: 0
                message: success
                data:
                  character_id: chr_a1b2c3d4e5f6789012345678abcdef01
                  status: deleted
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Your Vivix API key. Keep it on your server.

````