set a state to null to delete it

what do you know, it worked without any code changes.
I wrote a test first to see if it worked as is, and it does