# templates archive Archive unused or failed template versions from a given template(s) ## Usage ```console coder templates archive [flags] [template-name...] ``` ## Options ### -y, --yes | | | |------|-------------------| | Type | bool | Bypass prompts. ### --all | | | |------|-------------------| | Type | bool | Include all unused template versions. By default, only failed template versions are archived. ### -O, --org | | | |-------------|----------------------------------| | Type | string | | Environment | $CODER_ORGANIZATION | Select which organization (uuid or name) to use.