delete | R Documentation |
Deletes one or more items. Note that this is irreversible.
delete(
ssimObject,
project = NULL,
scenario = NULL,
folder = NULL,
chart = NULL,
datasheet = NULL,
force = FALSE,
removeBackup = FALSE,
removePublish = FALSE,
removeCustom = FALSE,
session = NULL
)
## S4 method for signature 'character'
delete(
ssimObject,
project = NULL,
scenario = NULL,
folder = NULL,
chart = NULL,
datasheet = NULL,
force = FALSE,
removeBackup = FALSE,
removePublish = FALSE,
removeCustom = FALSE,
session = NULL
)
## S4 method for signature 'SsimObject'
delete(ssimObject, project, scenario, folder, chart, datasheet, force, session)
ssimObject |
|
project |
character string, numeric, or vector of these. One or more
|
scenario |
character string, numeric, or vector of these. One or more
|
folder |
character string, numeric, or vector of these. One or more
|
chart |
character string, numeric, or vector of these. One or more
|
datasheet |
character string or vector of these. One or more datasheet names (optional) |
force |
logical. If |
removeBackup |
logical. If |
removePublish |
logical. If |
removeCustom |
logical. If |
session |
|
Invisibly returns a list of boolean values corresponding to each
input: TRUE
upon success (i.e.successful deletion) and FALSE
upon failure.
## Not run:
# Specify file path and name of new SsimLibrary
myLibraryName <- file.path(tempdir(), "testlib")
# Set up a SyncroSim Session, SsimLibrary, and Project
mySession <- session()
myLibrary <- ssimLibrary(name = myLibraryName, session = mySession)
myProject <- project(myLibrary, project = "a project")
# Check the Projects associated with this SsimLibrary
project(myLibrary)
# Delete Project
delete(myLibrary, project = "a project", force = TRUE)
# Check that Project was successfully deleted from SsimLibrary
project(myLibrary)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.