amsDeleteProject
Remove a Project from the AMS

Description

Removes a project and all of its artifacts from the AMS.

Usage

amsDeleteProject(x, url, apiToken, port = 2185)

Arguments

x a character value, either the name or the id of the project to be removed.
url the url for the AMS. The default is the cached value saved when amsLogin was called.
apiToken a character value, the API token to connect to the AMS. The default is cached value created when amsLogin was called.
port an numeric value, the port for connecting to the AMS. The default is cached value saved when amsLogin was called.

Details

Use the amsListProjects function to list all project names and ids in the AMS.
A warning will be issued if the return status is not 200 (success).
Value
a list with components:
body a character vector with the body of the results from the connection to the AMS. This is in JSON format.
status an integer return code from the connection to the AMS. A value of 200 indicates a successful operation.
headers a character vector containing the headers returned from the connection to the AMS.
See Also
amsLogin, status_code
Examples
## Not run: 
amsLogin("http://localhost", "fakeuser", "fakepassword")
projTable <- amsListProjects()
zdelete <- amsDeleteProject(projTable[1, "projectName"]) 
## End(Not run)
Package AMS version 6.1.1-7
Package Index