Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added docs/images/delete-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,28 @@ resource "kubernetes_pod" "podName" {
}
```

### Delete templates

<<<<<<< HEAD
You can delete a template using both the coder CLI and UI. Only
[template admins and owners](./admin/users.md) can delete a template, and the template
must not have any running workspaces associated to it.
=======
You can delete a template using both the Coder CLI and UI. Only
[template admins and owners](./admin/users.md) can delete a template.
>>>>>>> 0407c2294c5c7321071c17013f2e39bd70568165

Using the CLI, login to Coder and run the following command to delete a template:

```console
coder templates delete <template-name>
```

In the UI, navigate to the template you want to delete, and select the dropdown in
the right-hand corner of the page to delete the template.

![delete-template](./images/delete-template.png)

#### Delete workspaces

When a workspace is deleted, the Coder server essentially runs a
Expand Down