macOS: Removing Items from Print > PDF menu
I no longer have Aperture installed. But it still shows up in my Print > PDF popup menu. How to remove it?
I haven't run Aperture in years, and I finally removed it during the upgrade to macOS 10.15.
The Short Form
Find:
$ ls -l /Library/PDF\ Services/ total 0 drwxrwxr-x@ 3 root wheel 96 Oct 17 2010 Save PDF to Aperture.workflow drwxrwxr-x@ 3 root wheel 96 Oct 17 2010 Save PDF to folder as JPEG.workflow drwxrwxr-x@ 3 root wheel 96 Oct 17 2010 Save PDF to folder as TIFF.workflow
Remove:
$ sudo rm -rf /Library/PDF\ Services/*.workflow
Enjoy:

The Long Form
I couldn't figure out where these Aperture-related menu items were defined. They certainly weren't present on my MacBook Pro. Were they defined somewhere in my account, under ~/Library?
I created a test user account, logged into it, opened a web page in Safari, and saw that the unwanted Print > PDF entries were present there, too. That suggested the entries might be defined somewhere in /Library
rather than in ~/Library
. A couple of shell commands revealed the location:
$ cd /Library $ find . -iname '*aperture*' 2>/dev/null
Future Work
I'd sure like to get rid of that old "Save as Postscript" menu item...