refine_delete: Delete project from OpenRefine

Description Usage Arguments Value References Examples

View source: R/refine_delete.R

Description

This function allows users to delete a project in OpenRefine by name or unique project identifier. By default users are prompted to confirm deletion. The function wraps the OpenRefine API /command/core/delete-project query.

Usage

1
refine_delete(project.name = NULL, project.id = NULL, force = FALSE, ...)

Arguments

project.name

Name of project to be deleted

project.id

Unique identifier for open refine project to be deleted

force

Boolean indicating whether or not the prompt to confirm deletion should be skipped; default is FALSE

...

Additional parameters to be inherited by refine_path; allows users to specify host and port arguments if the OpenRefine instance is running at a location other than http://127.0.0.1:3333

Value

Operates as a side-effect to delete the project. Issues a message that the project has been deleted.

References

https://github.com/OpenRefine/OpenRefine/wiki/OpenRefine-API#delete-project

Examples

1
2
3
4
5
6
## Not run: 
fp <- system.file("extdata", "lateformeeting.csv", package = "rrefine")
refine_upload(fp, project.name = "lfm")
refine_delete("lfm", force = TRUE)

## End(Not run)

rrefine documentation built on Oct. 4, 2021, 9:07 a.m.