Deleting
Last updated
Last updated
Use to delete groups.
In this example, we delete the group with the name "selectedBooks"
.
You can delete multiple groups by passing an array of group names to delete when calling remove()
.
Here are two other ways to accomplish the same thing:
update()
to Delete a GroupYou may choose to use one over the other when it makes sense as part of a bulk operation.
For instance, in the following call to store.update()
, we are able to update a resource and delete a group at the same time:
Had we used remove()
to delete this list, we would have had to create the resource in a separate call to update()
, which is why in this situation it made more sense to use update
to delete the list.
Passing null
or an empty array to will delete the group.