Remove Command

The remove command in the PxPlus Package Manager is used to delete a specified package from a project. This command deletes the package from the disk, lock file, and packages file if it's present in them.

Synopsis

remove [package_name]
  • package_name: The name of the package you want to remove.

Description

The remove command allows you to easily delete an installed package from your project. When you run this command, it checks if the package is on the disk, in the lock file, and in the packages file. If the package is found, it is removed from all these locations.

Parameters

  • package_name: The unique name of the package you want to delete. This is a required argument.

Examples

  • To remove a specific package:

    remove mypackage
  • To remove another package:

    remove anotherpackage

Output

If the package is removed successfully, a message will let you know that the package removal is complete. If there's an issue, an error message will be shown.

Exceptions

  • If the package name is missing or empty, a CommandNoParametersException will be raised.
  • If the package system isn't set up, a PackagesFileNotInitializedException will be triggered.
  • If the package isn't found on the disk, lock file, or packages file, a PackageNotInstalledException will be raised.

See Also

For more details about the PxPlus Package Manager commands, refer to the main documentation or use the help command.