Script has been created https://svn.oucs.ox.ac.uk/groups/nsms/src/n/nsms-mmp-scripts/trunk/TSM_Remover.sh which should archive the logs to /Users/.mmp/tivoli if it exists, before removing everything TSM related except that directory.
When the script has been run it changes the HFS Hostname and HFS Password extension attributes to read "Deprecated on %DATE%" so a Smart Group could be set up which
and runs the script on them.