The Obsolete Man episode 65
Its about a librarian who the state deems as obsolete and as a result must be put to death. One of the best TZ episodes IMO.
Thank you both.