Deleting attributes in partial updates?

Hi all. I’m trying to delete an attribute using partialUpdateObjects. The docs here say that it’s possible but I can’t find the right docs to tell me how to do it.

I want to update an object to remove an attribute eg. I have the document { objectID: 'foobar', a: 'a', b: 'b' } and I want to remove the a attribute without having to look up and re-save the object with saveObject.

Thanks!

Hi @shanly, Thanks for point this out. I think this is confusing in our documentation and I will pass this on to our documentation team.

Specifying existing attributes will update them in the object, while specifying new attributes will add them. You need to use the save objects method if you want to completely redefine an existing object , replace an object with a different one, or remove attributes. You cannot individually remove attributes with the partialUpdateObjects.

Thanks for clarifying Cindy.