Remove a version of an asset of a project from the registry.
removeVersion(project, asset, version, staging, url)
NULL
is invisibly returned if the version was successfully removed.
removeProject
and removeAsset
, to remove a project or asset.
info <- startGobbler()
removeProject("test", info$staging, url=info$url) # start with a clean slate.
createProject("test", info$staging, url=info$url)
# Mocking up a version if it doesn't already exist.
src <- allocateUploadDirectory(info$staging)
write(file=file.path(src, "foo"), "BAR")
uploadDirectory("test", "simple", "v1", src, staging=info$staging, url=info$url)
listVersions("test", "simple", registry=info$registry)
#> [1] "v1"
# Removing the version.
removeVersion("test", "simple", "v1", staging=info$staging, url=info$url)
listVersions("test", "simple", registry=info$registry)
#> character(0)