---
# Code generated by make gen. DO NOT EDIT.
title: "`coder templates archive`"
description: "Archive unused or failed template versions from a given template(s)."
---
Archive unused or failed template versions from a given template(s)
## Usage
```console
coder templates archive [flags] [template-name...]
```
## Options
### -y, --yes
| Property | Value |
|----------|-------------------|
| Type | bool |
Bypass confirmation prompts.
### --all
| Property | Value |
|----------|-------------------|
| Type | bool |
Include all unused template versions. By default, only failed template versions are archived.
### -O, --org
| Property | Value |
|-------------|----------------------------------|
| Type | string |
| Environment | $CODER_ORGANIZATION |
Select which organization (uuid or name) to use.