Fix deletion of `clear` instead of `state`