Reset Namespace
You can reset a namespace by calling thereset()
method on the index or namespace.
If the reset()
method is called on the index, only the default namespace will be reset, not the whole index.
Reset All Namespaces
To reset all namespaces, you can call theresetAll()
method on the index, as shown below: