H5Ldelete {rhdf5}R Documentation

Remove a link from a group

Description

Remove a link from a group

Usage

H5Ldelete(h5loc, name)

Arguments

h5loc

An object of class H5IdComponent representing a H5 location identifier (file or group).

name

The name of the link to be deleted.

Examples


# create an hdf5 file and a group
h5createFile("ex_H5L.h5")
h5createGroup("ex_H5L.h5","/foo")

# reopen file and confirm "/foo" exists but "/baa" does not
fid <- H5Fopen("ex_H5L.h5")
H5Lexists(fid, "/foo")

# remove the link to "/foo" and confirm it no longer exists
H5Ldelete(fid, "/foo")
H5Lexists(fid, "/foo")

H5Fclose(fid)


[Package rhdf5 version 2.37.4 Index]