Collections
Truncate collection
Remove all documents from the collection but leaves the indexes intact.
put/_fabric/{fabric}/_api/collection/{collection-name}/truncate
Request
- The document declares no server URL.
- Auth
- API key in header Authorization
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
fabricstring string required
The name of the fabric.
collection-namestring string required
The name of the collection.
Response
Successfully removed all the documents.
Example response
{
"code": 200,
"id": "89218",
"name": "colltest0127133421258ogefv",
"status": 3,
"type": 2,
"collectionModel": "DOC",
"hasStream": true,
"globallyUniqueId": "h2C627F3DCC8E/89218"
}Changes
No recorded changes to this operation across all 1 revision of this API.