--- acl_categories: - '@tdigest' - '@write' - '@fast' arguments: - name: key type: key categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients complexity: O(1) description: Resets a t-digest sketch (empties the sketch and re-initializes it). group: tdigest hidden: false linkTitle: TDIGEST.RESET module: Bloom railroad_diagram: /images/railroad/tdigest.reset.svg since: 2.4.0 stack_path: docs/data-types/probabilistic summary: 'Resets a t-digest sketch: empty the sketch and re-initializes it.' syntax_fmt: TDIGEST.RESET key title: TDIGEST.RESET --- Resets a t-digest sketch: empties the sketch and re-initializes it. ## Required arguments
key is the key name for an existing t-digest sketch.
## Example {{< highlight bash >}} redis> TDIGEST.RESET t OK {{< / highlight >}} ## Redis Software and Redis Cloud compatibility | Redis
Software | Redis
Cloud | Notes | |:----------------------|:-----------------|:------| | ✅ Supported
| ✅ Flexible & Annual
✅ Free & Fixed | | ## Return information {{< multitabs id="tdigest-reset-return-info" tab1="RESP2" tab2="RESP3" >}} One of the following: * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly. * [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: key does not exist or is of the wrong type, or incorrect number of arguments. -tab-sep- One of the following: * [Simple string reply]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}) `OK` if executed correctly. * [Simple error reply]({{< relref "/develop/reference/protocol-spec#simple-errors" >}}) in these cases: key does not exist or is of the wrong type, or incorrect number of arguments. {{< /multitabs >}}