Skip to content

Commit c8eba7a

Browse files
committed
doc UPDATE clarify sr_delete_item for oper DS
1 parent 5d02a35 commit c8eba7a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sysrepo.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,8 +951,10 @@ int sr_set_item_str(sr_session_ctx_t *session, const char *path, const char *val
951951
* If ::SR_EDIT_STRICT flag is set the specified node must must exist in the datastore.
952952
* If the @p path includes the list keys/leaf-list value, the specified instance is deleted.
953953
* If the @p path of list/leaf-list does not include keys/value, all instances are deleted but there can be no further
954-
* changes merged into the list, use ::SR_EDIT_ISOLATE in such a case. Neither option is allowed
955-
* for ::SR_DS_OPERATIONAL.
954+
* changes merged into the list, use ::SR_EDIT_ISOLATE in such a case.
955+
*
956+
* For ::SR_DS_OPERATIONAL, this function deletes the selected node from the session push oper data. To delete the node
957+
* from the final operational datastore, use ::sr_discard_items() instead. No option is allowed for this datastore.
956958
*
957959
* @param[in] session Session ([DS](@ref sr_datastore_t)-specific) to use.
958960
* @param[in] path [Path](@ref paths) identifier of the data element to be deleted.

0 commit comments

Comments
 (0)