Since #500, a spam-training sample's hold on a message's blob ends with the account's own copy: release() clears the sample's temporary link. The blob purge is what removes a SpamTrainingSample, and it finds one only through that link's value once the link expires. With the link cleared early, nothing found the sample again, so its registry item and account index stayed behind for good, past the account's deletion. release() now reads the sample's id from the link before clearing it, and removes the registry item and its index in the same write. The system suite's account purge test caught it ("Store is not empty": a leftover SpamTrainingSample).