Chef - fetching policy and group via API

You can also use chef clean-policy-revisions and chef clean-policy-cookbooks if you’re just looking to keep things neat and tidy. we run both of those prior to our nightly backups