Deletes an object (dataset or group) from an HDF5 file. If the object is a group, all objects contained within it will be deleted recursively.
Examples
file <- tempfile(fileext = ".h5")
h5_write(file, "/g1/d1", 1:10)
h5_write(file, "d2", 1:5)
print(h5_ls(file, recursive = TRUE))
#> [1] "g1" "g1/d1" "d2"
# Delete a dataset
h5_delete(file, "d2")
print(h5_ls(file, recursive = TRUE))
#> [1] "g1" "g1/d1"
# Delete a group (and its contents)
h5_delete(file, "g1")
print(h5_ls(file, recursive = TRUE))
#> character(0)
unlink(file)
