ml.clear.database: Remove all rfml internal files in a MarkLogic database.

Description Usage Arguments Details Value Examples

View source: R/config.R

Description

The function removes the REST extensions and modules added with the ml.init.database function. It also removes the document, /rfml/rfmlInfo.json, that stores the version of the rfml package and the date the database are initiated.

Usage

1
2
ml.clear.database(host = "localhost", port = "8000", adminuser = "admin",
  password = "admin")

Arguments

host

The hostname or ipadress of the MarkLogic http server. Default to localhost.

port

The port number of the MarkLogic http server. 8000 is used default

adminuser

The username of a user that have rights to install options. admin is default.

password

The password admin is default.

Details

The user that is used for the login must have the rest-admin role, or the following privileges:

Value

Nothing if success otherwise it will raise an error.

Examples

1
2
3
4
## Not run: 
ml.clear.database("localhost", "8000", "admin", "admin")

## End(Not run)

rfml documentation built on May 2, 2019, 3:01 a.m.