gp_api_unit_delete | R Documentation |
Deletes a unit from MongoDB using the GP API. Does not delete it from Google Drive or GitHub gp-lessons project.
gp_api_unit_delete(
WD = "?",
unit_id = NULL,
prompt_user = TRUE,
dev = TRUE,
verbosity = 1
)
WD |
working directory, passed to |
unit_id |
instead of supplying WD, you can supply the _id directly for the unit that you want to delete. |
prompt_user |
logical; ask user before deleting and replacing the unit? default=TRUE |
dev |
logical; if FALSE (default), gets catalog from the production gp-catalog. Otherwise, from the dev catalog. |
verbosity |
passed to |
success (logical)
Other GP API:
gp_api_get_token()
,
gp_api_query()
,
gp_api_query_users()
,
gp_api_unit_insert()
,
gp_api_unit_replace()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.