uninstall

Command: uninstall <packages>

Description: Use this command to uninstall installed packages.

Use: tcpkg uninstall <packages> [options]

Arguments:

<packages>

In this argument, you can specify the package or a list of packages to be uninstalled. If you want to specify lists of packages, you must separate the individual package IDs with a space. If you also want to specify a version, this must be written directly after the package ID, separated by an equals sign. If no fixed version is specified, the version that is found first in the feeds according to their priorities will be uninstalled.

Options:

-y, --bypass, --bypass-confirmation, --no-prompt

Use this option to prevent queries from being made during installation.

--include-dependencies Remove the dependencies of the package.

When using this option, not only the package itself is uninstalled, but also all packages that depend on it. This applies to all dependent packages that are not protected by other dependencies.

--as-json

If this option is used, the output text is returned in JSON format. This implicitly sets the -y option.

--params <params>

You can only use these parameters for TwinCAT HMI servers. When this option is used, parameters are provided that are queried and evaluated in the package.

Example: --params "Test1=5 Test2"

--params-sensitive <params-sensitive>

You can only use these parameters for TwinCAT HMI servers. With this option, the parameters used are not written to the log file.

--params-file <params-file>

You can only use these parameters for TwinCAT HMI servers. With this option, you can specify the path to a text file in which the parameters are entered in the following format.

PackageID=Parameters

Please note that only one package is entered per line. To enter parameters for all packages, use "all":

all=Parameters

If you also enter an "*", the parameters are treated as "--params-sensitive" and are not written to the log file.

--keep-latest <number>

For packages of which several versions can be installed at the same time, use this command to uninstall old versions and the current version or the specified current versions will be retained.

Sample:

Uninstalling the TwinCAT Standard Engineering workload
tcpkg uninstall TwinCAT.Standard.XAE

Uninstalling the TwinCAT Standard Engineering workload with all dependencies
tcpkg uninstall TwinCAT.Standard.XAE --include-dependencies