Deleting a package by using the pucl command

Remove packages from a repository with the delete command for the IBM Packaging Utility command line, pucl.

About this task

Deleting from remote HTTP and FTP repositories is not supported. You cannot use HTTP or FTP repositories as target repositories.

Procedure

  1. Open a command-line utility.
  2. Open the Packaging Utility directory for your operating system.
    • Windows: install_dir\IBM\Packaging Utility
    • Linux®, UNIX, IBM z/OS®, and the OS X operating system: install_dir/IBM/PackagingUtility
  3. Run this command to delete a package from a repository:
    pucl delete packageID_version 
            -target destination_repository
            [ -preview ]

    pucl delete packageID_packageVersion -target target_repository

    Enclose file paths that include spaces with double quotation marks.
    Examples of the delete command:
    • Windows as an administrator: pucl.exe delete com.ibm.package_7.2 -target C:\IBM\IBM_Packages\
    • Linux, UNIX, z/OS, and the OS X operating system as an administrator: ./pucl delete com.ibm.package_7.2 -target /var/ibm/ibm_packages/