Fixed unset of postgres before removing.