Remove a project from the registry. This should only be performed by Gobbler instance administrators, who should consider running rerouteLinks beforehand to avoid dangling references to this version.

removeProject(project, staging, url)

Arguments

project

String containing the project to remove.

staging

String containing the path to the staging directory.

url

String containing the URL of the gobbler REST API.

Value

NULL is invisibly returned if the project was successfully removed.

See also

removeAsset and removeVersion, to remove assets and versions respectively.

rerouteLinks, to reroute links to this project's contents prior to deletion.

createProject, to create a project.

Author

Aaron Lun

Examples

info <- startGobbler()
removeProject("test", info$staging, url=info$url) # start with a clean slate.

# Mocking up a project so we have something to delete.
createProject("test", info$staging, url=info$url)
listProjects(registry=info$registry)
#> [1] "even-more-test" "more-test"      "test"          

# Removing the project.
removeProject("test", staging=info$staging, url=info$url)
listProjects(registry=info$registry)
#> [1] "even-more-test" "more-test"