Delete template docs (#4029)

* add: delete template docs

* add: RBAC context

* fix: caps

Co-authored-by: Ben Potter <ben@coder.com>

* add: deletion note

Co-authored-by: Ben Potter <ben@coder.com>
This commit is contained in:
Eric Paulsen
2022-09-13 10:51:50 -05:00
committed by GitHub
co-authored by Ben Potter
parent 3ded910cca
commit d57c181aad
2 changed files with 22 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

+22
View File
@@ -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