Simperium (JS) delete object from bucket

264 Views Asked by At

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.

1

There are 1 best solutions below

1
On BEST ANSWER

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