grapes-delete-grapes: Delete Elasticsearch index.

Description Usage Arguments Examples

Description

Delete all of the documents within a particular document type (if specified), or delete an entire index (if the document type is unspecified.)

Usage

1
rescource %delete% approve

Arguments

rescource

An elastic_rescource object that contains the information on the Elasticsearch cluster, index and document type, where the indexed data will reside. If this does not already exist, it will be created automatically.

approve

Must be equal to "TRUE" for deletion for all documents in a rescource, OR be a character vector of document ids if only specific documents need to be deleted.

Examples

1
2
3
4
## Not run: 
elastic("http://localhost:9200", "iris", "data") %delete% TRUE

## End(Not run)

AlexIoannides/elasticsearchr documentation built on July 31, 2019, 9:36 a.m.