I was wondering if there was an easy way to purge ...
# fleet
b
I was wondering if there was an easy way to purge / clear old application/inventory information. I had been collecting the inventory in fleet, and we are not using it so I am going to disable it. However I noted that disabling it did nothing to purge/clear the existing info. Does this info get cleared out over time, or is there a way to purge it?
j
What do you mean by
disabling it
? Fleet can be configured to remove nodes that haven't been seen for some period of time. See https://fleetdm.com/docs/configuration/configuration-files#host-expiry-settings
b
I am looking to purge the inventory of applications from the instance, while keeping the rest of the information from each of the client machines. Disabling is applying a YAML to disable the inventory feature. https://fleetdm.com/docs/configuration/configuration-files#features-enable-software-inventory
j
Ah. Well, working in the database is always an option. 😈
b
That is true - I was wondering if there was a way via fleet, and if not I am not averse to running DB commands, I just don’t want to run them without guidance. 🙂
k
Hey @benbass, In this case, I would go ahead and clear the software-related tables. The only downside is that you'll have to wait a while for them to repopulate if you turn software inventory back on.
host_software
host_software_installed_paths
software
software_cpe
software_cve
software_host_counts
software_titles
software_titles_host_counts
Those are based on v4.44.0
b
Awesome, thank you Kathy!
k
No problem!