Deletes a stored artifact file and removes its metadata row from the store index.
Arguments
- store
An
insider_storehandle created byinsider_store().- id
The artifact id to remove.
Examples
proj <- tempfile("proj-")
dir.create(proj)
store <- insider_store(proj, create = TRUE)
artifact <- structure(list(name = "demo"), class = "insider_demo")
id <- store_save(store, artifact, label = "demo artifact")
#> Saved "demo-c6be45ee" to /tmp/Rtmpvw2GbA/proj-180e6a8cad85/.insider.
store_remove(store, id)
store_list(store)
#> [1] id kind label package
#> [5] package_version insider_version schema_version created
#> [9] tags object_path
#> <0 rows> (or 0-length row.names)