# coder templates archive

Archive unused or failed template versions from a given template(s)

## Usage [#usage]

```console
coder templates archive [flags] [template-name...] 
```

## Options [#options]

### -y, --yes [#-y---yes]

|      |                   |
| ---- | ----------------- |
| Type | <code>bool</code> |

Bypass confirmation prompts.

### --all [#--all]

|      |                   |
| ---- | ----------------- |
| Type | <code>bool</code> |

Include all unused template versions. By default, only failed template versions are archived.

### -O, --org [#-o---org]

|             |                                   |
| ----------- | --------------------------------- |
| Type        | <code>string</code>               |
| Environment | <code>$CODER\_ORGANIZATION</code> |

Select which organization (uuid or name) to use.
