Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Delete template docs #4029

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Sep 13, 2022
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