neo4j_rmfiles: Remove files from the Neo4J import directory

neo4j_rmfilesR Documentation

Remove files from the Neo4J import directory

Description

Remove files from the Neo4J import directory

Usage

neo4j_rmfiles(
  local = FALSE,
  con = list(address = NULL, uid = NULL, pwd = NULL),
  files = NULL,
  import_dir = "import"
)

Arguments

local

Logical indicating whether import is to a locally hosted or remotely hosted server.

con

If remotely hosted server, list containing three objects: address, uid, pwd as character strings providing connection to the Neo4J server. uid and pwd must be for an account on the server with appropriate permissions.

files

Character vector of file names to be removed.

import_dir

Character string of path to the Neo4J import directory.

Value

A success message if successful. An error message otherwise.

Examples

# remove file from local import directory
fs::dir_create("import")
fs::file_create("import/data.csv")
neo4j_rmfiles(local = TRUE, files = "data.csv", import_dir = "import")
fs::dir_delete("import")

neo4jshell documentation built on April 11, 2022, 5:08 p.m.