Remove an asset of the project from the registry.
removeAsset(project, asset, staging, url)
NULL
is invisibly returned if the asset was successfully removed.
removeProject
and removeVersion
, to remove projects and versions respectively.
info <- startGobbler()
removeProject("test", info$staging, url=info$url) # start with a clean slate.
createProject("test", info$staging, url=info$url)
# Mocking up an asset so we have something to remove.
src <- allocateUploadDirectory(info$staging)
write(file=file.path(src, "foo"), "BAR")
uploadDirectory("test", "simple", "v1", src, staging=info$staging, url=info$url)
listAssets("test", registry=info$registry)
#> [1] "simple"
# Removing the asset.
removeAsset("test", "simple", staging=info$staging, url=info$url)
listAssets("test", registry=info$registry)
#> character(0)