tree data FEATURE function for unlinking siblings
diff --git a/src/tree_data.c b/src/tree_data.c
index ccce0f7..a2c3ef3 100644
--- a/src/tree_data.c
+++ b/src/tree_data.c
@@ -2737,6 +2737,17 @@
 }
 
 API void
+lyd_unlink_siblings(struct lyd_node *node)
+{
+    struct lyd_node *next, *elem, *first = NULL;
+
+    LY_LIST_FOR_SAFE(node, next, elem) {
+        lyd_unlink_tree(elem);
+        lyd_insert_node(NULL, &first, elem, 1);
+    }
+}
+
+API void
 lyd_unlink_tree(struct lyd_node *node)
 {
     struct lyd_node *iter;