powered by
Removes a key-value pair from a map or an element from a list.
am_delete(doc, obj, key)
The document doc (invisibly)
doc
An Automerge document
An Automerge object ID (from nested object), or AM_ROOT for the document root
AM_ROOT
For maps: character string key to delete. For lists: numeric index (1-based, like R vectors) to delete
doc <- am_create() am_put(doc, AM_ROOT, "temp", "value") am_delete(doc, AM_ROOT, "temp") am_close(doc)
Run the code above in your browser using DataLab