plugin prune
The plugin prune command removes unused OCI-based plugins found in the given
plugin directory but not referenced by the OpenBao server configuration's
plugin definitions from disk.
This can be used to free disk space following plugin upgrades by removing the binaries of any prior versions. Plugins that were manually installed into the plugin directory are ignored and left in place.
Examples
Prune plugins using a configuration file:
$ bao plugin prune -config=/path/to/openbao.hcl
Prune within a specific directory:
$ bao plugin prune -config=/path/to/config.hcl -directory=/opt/openbao/plugins
Load multiple configuration files:
$ bao plugin prune -config=/etc/openbao -config=/opt/openbao/extra.hcl
Usage
The following flags are available in addition to the standard set of flags included on all commands.
Command options
-
-config(string: required)- Path to configuration file or directory. Can be specified multiple times. The environment variableBAO_CONFIG_PATHmay also be used to specify multiple configuration paths using a comma (,) as a separator. -
-directory(string: optional)- Plugin directory override. Usesplugin_directoryfrom config if not specified.