Key Value

Remove all key-value pairs in a collection

Remove all key-value pairs in a collection.

put/_fabric/{fabric}/_api/kv/{collection}/truncate

Request

Path parameters

fabricstring string required

The name of the fabric.

collectionstring string required

The name of the key-value collection.

Query parameters

groupIDstring string

Truncate the key-value pairs belonging to this group ID.

Response

Successfully removed all key-value entries.

codeinteger

HTTP response code.

errorboolean required

Flag if there is an error in response. False for this response.

namestring

It shows name of the collection.

Example response

{
  "code": 200,
  "name": "testCollection"
}

Changes

No recorded changes to this operation across all 1 revision of this API.