plugins remove
The plugins remove
subcommand removes one or more versions of an installed Packer plugin.
The command is flexible enough to remove all versions at once or just a single version at a time.
- If a plugin's source address is specified, without a version constraint, all the versions of that plugin will be removed.
- If a version constraint is specified, only the specified version will be removed.
- If a direct path to a plugin is specified, only the specified version will be removed.
Refer to the examples below for details on usage.
Remove all installed plugins
The plugins remove
command can be used in conjunction with the plugins installed
command to remove all
Packer plugins by piping the results of plugins installed
to plugins removed
.
On a Unix based OS with xargs installed you can remove all plugin versions using the following command:
Related
packer init
will install all required plugins.packer plugins install
will install a single plugin.