diff --git a/docs/images/delete-template.png b/docs/images/delete-template.png new file mode 100644 index 0000000000000..b43a508528896 Binary files /dev/null and b/docs/images/delete-template.png differ diff --git a/docs/templates.md b/docs/templates.md index aa0ba4e31c43d..24e98bbc9cb6b 100644 --- a/docs/templates.md +++ b/docs/templates.md @@ -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 +``` + +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