Search code examples
javascriptsimperium

Simperium (JS) delete object from bucket


Is there a way within the Simperium JS client to delete an item from a bucket?

The other APIs appear to be able to do so.

I've tried using:

bucket.update(id, null)

bucket.update(id, undefined)

But these don't seem to do anything. There is no bucket.delete or bucket.remove that I can see.


Solution

  • When you update that id, the 'local' callback for that id should also return null. That should delete the object from the bucket.