gim_remove_bundle

Delete a bundle from both the database and the file system.

You can use the wildcard character (*) to delete all unassigned bundles.

The gim_remove_bundle API removes a specified bundle from both /var/log/guard/gim_packages, and, if the Guardium® system is a central manager, from /var/gim_dist_packages.

This API is available in Guardium V9.5 and later.

REST API syntax

This API is available as a REST service with the DELETE method. Call this API as follows:
DELETE https://[Guardium hostname or IP address]:8443/restAPI/gim_remove_bundle

GuardAPI syntax

gim_remove_bundle parameter=value
Parameter Value type Description
bundlePackageName String Required. The value must be unique and refer to an existing bundle that is not assigned to any client. Specify an asterisk (*) to delete all unassigned bundles.

Examples

To specify a bundle to delete:

grdapi gim_remove_bundle bundlePackageName= hadriansBundle
To delete all unassigned bundles:
grdapi gim_remove_bundle bundlePackageName=*
Sample output:
Failed removing bundle (Can't delete module BUNDLE-GIM 11.5.0_r105891_1 as part of bundle guard-BUNDLE-GIM-10.5.0_r105891_v10_5_1-rhel-6-linux-x86_64 removal - Installed on at least one client)
BUNDLE_PACKAGE removed:guard-GIM-guardium_11.5_r100500139_1-Windows-Server-Windows-x86_x64.exe.signed
BUNDLE_PACKAGE removed:guard-BUNDLE-STAP-11.5.0_r102753_trunk_1-suse-11-linux-x86_64.tar.gz.signed
BUNDLE_PACKAGE removed:guard-BUNDLE-STAP-11.5.0_r103055_v11_5_1-rhel-6-linux-x86_64.tar.gz.signed
ID=0