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

# Delete template version

> Delete one published version from your registry.

Deletes a single published version you own. To replace a version in place instead of deleting it, re-publish with [`?force=true`](/api-reference/templates/publish).

<Warning>
  Deleting a version that desktops were launched from does not affect those running computers - they already restored from the golden snapshot. It only removes the version from your registry so it can no longer be launched or built. Curated templates cannot be deleted.
</Warning>

## Path parameters

<ParamField path="namespace" type="string" required>Template namespace.</ParamField>
<ParamField path="name" type="string" required>Template name.</ParamField>
<ParamField path="version" type="string" required>Version (semver) to delete.</ParamField>

## Response

<ResponseField name="deleted" type="boolean">
  `true` when the version was removed.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl -X DELETE https://www.orgo.ai/api/templates/default/claude-code/1.0.0 \
    -H "Authorization: Bearer $ORGO_API_KEY"
  ```

  ```python Python theme={null}
  import os, requests

  r = requests.delete(
      "https://www.orgo.ai/api/templates/default/claude-code/1.0.0",
      headers={"Authorization": f"Bearer {os.environ['ORGO_API_KEY']}"},
  )
  print(r.json())  # {"deleted": true}
  ```

  ```javascript JavaScript theme={null}
  const r = await fetch(
    "https://www.orgo.ai/api/templates/default/claude-code/1.0.0",
    {
      method: "DELETE",
      headers: { Authorization: `Bearer ${process.env.ORGO_API_KEY}` },
    },
  );
  console.log(await r.json());
  ```
</CodeGroup>

### Response

```json theme={null}
{ "deleted": true }
```


## OpenAPI

````yaml DELETE /templates/{namespace}/{name}/{version}
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /templates/{namespace}/{name}/{version}:
    delete:
      tags:
        - Templates
      summary: Delete template version
      description: >-
        Deletes one published version you own. Running computers already
        launched from it are unaffected. Curated templates cannot be deleted.
      operationId: deleteTemplate
      parameters:
        - name: namespace
          in: path
          required: true
          schema:
            type: string
        - name: name
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Deleted
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                    example: true
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Resource not found
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````