I am trying to totally remove an attribute from a backbone model. The model is being sent to an API that isn't very flexible, and it will break if I send additional attributes over the ones I'm supposed to send, so I need to remove an attribute so it no longer exists.
I tried model.unset
, from this question, but when I print out the object the attribute I'm trying to remove is still listed, just with a value of null.
I need the attribute to be completely gone.
My basic structure is:
model.unset("AttrName", "silent");