[minor] Remove debugging `println`s.
Don’t be overly conservative when deleting refs.

Fixes #266.