Identify unused packages, scripts and policies on a Jamf Pro Server and optionally remove them.
Spruce is a command line tool that looks for objects on your Jamf Pro server which have no current usage, are out of date, or are otherwise "crufty". It can optionally remove objects from its findings.
For details on how to use Spruce, please visit our Wiki.
IMPORTANT: Spruce 3 requires python-jss 2.1.0 and python3, with the
Foundationmodule. The simplest way to achieve this is to install AutoPkg 2.0 and JSSImporter 1.1.0, and then run Spruce using the python that is supplied with AutoPkg:
/usr/local/autopkg/python spruce.py -h
Huge thanks to Shea Craig, who wrote the bulk of this work and is still providing advice, though not currently involved in Jamf administration.
The world of Mac administration evolves fast, and continued functionality of Spruce and python-jss requires active engagement from the Jamf-using Mac Admin community. If you think you can help and have ideas, please go ahead and file issues and pull requests, or contact us in the MacAdmins Slack
See the LICENSE file.