This version of the API is deprecated.

See collection.reset for the current version of this method.

corpus.reset

Reset a Corpus. This method will remove all articles in the corpus and all exiting results for the corpus. Id counter for the corpus will be reset.

Request Parameters

Corpus IDint (required)
The Corpus to reset.

Response Parameters

NoneBoolean
True if it was a success else throws an error code.

Code Examples

JSON


//Request
{"method":"corpus.reset","params":[2],"id":0}

//Response
{"id":0,"result":"true"]}