H5Ldelete: Remove a link from a group

View source: R/H5L.R

H5LdeleteR 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


h5file <- tempfile(pattern = "_ex_H5L.h5")

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

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

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

H5Fclose(fid)


grimbough/rhdf5 documentation built on Sept. 14, 2024, 8:41 a.m.