You can empty an object by setting it to null:
You can also empty an object by setting it to undefined:
The typeof a variable with no value is also undefined.
Any variable can be emptied, by setting the value to undefined. The type will also be undefined.