3.4.5. Removing Bundles from Inventory

A bundle can be removed from inventory using the remove command. This command deletes a specific version of a bundle from the inventory directory (after making the bundle writable).

A bundle cannot be removed if it has been deployed. You must first remove all deployed instances by using undeploy or envremove commands.

A bundle hook named 'teardown' is executed during a remove. This is a script that you can include to perform additional actions before the bundle is removed.

Many BundleWorks commands, like remove, generate entries in the BundleWorks event log, showing the who, when, and where of a command. These events can be viewed using the history command, even for bundles that have been removed.