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

# Delete a Voice

> Delete a voice.

<Tabs>
  <Tab title="Python">
    ```python theme={null}
    def voices_delete(client: Cartesia, *args: str) -> None:
        """Delete a voice."""
        import sys

        if not args:
            print("Usage: voices_delete <voice_id>")
            sys.exit(1)
        client.voices.delete(args[0])
    ```

    From [cartesia-python/examples/examples.py:563](https://github.com/cartesia-ai/cartesia-python/blob/v3.2.0/examples/examples.py#L563)
  </Tab>

  <Tab title="TypeScript">
    ```typescript theme={null}
    async function voicesDelete(client: Cartesia, args: string[]): Promise<void> {
      const [voiceId] = args;
      if (!voiceId) {
        console.error('Usage: voicesDelete <voiceId>');
        process.exit(1);
      }
      await client.voices.delete(voiceId);
    }
    ```

    From [cartesia-js/examples/node\_examples.ts:606](https://github.com/cartesia-ai/cartesia-js/blob/v3.2.0/examples/node_examples.ts#L606)
  </Tab>
</Tabs>

## Run this example

<Tabs>
  <Tab title="Python">
    ```sh theme={null}
    git clone --branch v3.2.0 https://github.com/cartesia-ai/cartesia-python
    cd cartesia-python
    uv sync
    CARTESIA_API_KEY=YOUR_KEY uv run examples/examples.py voices_delete <voice_id>
    ```
  </Tab>

  <Tab title="TypeScript">
    ```sh theme={null}
    git clone --branch v3.2.0 https://github.com/cartesia-ai/cartesia-js
    cd cartesia-js
    pnpm i
    CARTESIA_API_KEY=YOUR_KEY pnpm tsn examples/node_examples.ts voicesDelete <voice_id>
    ```
  </Tab>
</Tabs>
