Delete unused package versions

Free up your storage space by deleting package versions that are not used in the public repository automations.

With every new Automation 360 release and periodic package updates, new package versions are downloaded to the Control Room. So we recommend that you delete older package versions as they might take up a large amount of disk space and increase maintenance costs. You can also significantly enhance the security and maintenance of your Control Room by removing older package versions that no longer comply with your security policies.

Keep in the mind the following considerations:
  • The default and latest versions of a package cannot be deleted, even if they are not used in any public automation.
  • If you use a deleted package version in your automation in the private workspace, ensure you update the automation to use an available package version to prevent your automations from failing.
  • The Delete unused package versions feature is available only for On-Premises deployments.
Note: If you have deleted the older package versions and want to re-download it into the Control Room, you can download an individual package by using this URL:

https://aai-artifacts.my.automationanywhere.digital/packages/<package-file-name>-<version.number>.jar

Example, for Application package, the naming convention is: bot-command-application-<version.number>.jar

bot-command-application-3.8.0.jar

For detailed steps on downloading a package and manually adding it to the Control Room, see Add packages to the Control Room.

Prerequisites

Ensure you have the Manage package permission in order to delete unused versions.

Procedure

  1. Log in to the Control Room as an administrator.
  2. Navigate to the Manage > Packages.
    On the packages landing page, the list of packages table displays the column for Unused versions.
    This column indicates whether a package has any unused versions and you can choose to delete these unused versions. The column displays the following status:
    • Yes: The package has unused versions, which can be deleted
    • No: The package does not have any unused versions.
    • Unscanned: When the Control Room is updated to Automation 360 v.33 or later, the system efficiently scans all automations one time to identify which package versions are used in automations. Until the scan is completed, the status is displayed as unscanned. After this scan, the Unscanned value will no longer be displayed in the Unused version column.
  3. Click the action menu (vertical ellipsis) and select View package or Delete unused versions to delete any unused version.
  4. On the View package page, select Delete unused versions.
    The Delete unused package versions of the <Package_name> page will display all the unused versions that are not used in the public repository. All the unused package versions are selected by default.
  5. Deselect the check box to skip deleting a specific version or versions.
    Note: The default and latest versions cannot be deleted.
  6. Click Delete.
    After these versions are deleted successfully, the activity will be logged in the Audit log page.
  7. Navigate to Administration > Audit log .
  8. On the Audit log page, select Event type from the drop-down list and search the entry by Delete unused package versions event type.
    You can also view and search for the details by using the following filters in the Audit log: Status, Item name, Event started by, Source device, Source or Request ID.
  9. To view the event details, click the three dots (ellipsis) icon next to the required event and click View event details.
    • Event details: Displays information such as the status, details of the user who started the event, the user device details, the request ID number, date and time of the initiated request, event type, and source of the request.
    • Delete unused package versions details: Displays information such as the count and version details deleted for a specific package.
    The following video shows how to delete unused package versions: