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

# Delete Template

You can delete a sandbox template from the CLI or programmatically through the SDK. Deleting a template is permanent.

<Warning>
  **Warning:** Deleting a template is irreversible. The CLI asks for confirmation by default (pass `-y` / `--yes` to skip) and also removes the local `novita.toml` config for the deleted template.
</Warning>

## Examples

<CodeGroup>
  ```bash CLI icon="terminal" theme={"system"}
  # Delete by template ID (alias: template dl)
  novita-sandbox-cli template delete <templateID>

  # Delete the template defined by novita.toml, without confirmation
  novita-sandbox-cli template delete -y

  # Pick from an interactive list
  novita-sandbox-cli template delete --select --team <teamID>
  ```

  ```js JavaScript & TypeScript icon="js" theme={"system"}
  import { Novita } from 'novita-sandbox'

  const novita = new Novita()
  const deleted = await novita.template.delete('tpl_123')
  console.log(deleted) // true if deleted, false if not found
  ```

  ```python Python icon="python" theme={"system"}
  from novita_sandbox import Novita

  novita = Novita()
  deleted = novita.template.delete('tpl_123')
  print(deleted)  # True if deleted, False if not found
  ```
</CodeGroup>
