> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# clear_statistics

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/clear_statistics.rs#L28-L39)
pub async fn [clear\_statistics](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/clear-statistics.md#method.clear_statistics)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[ClearStatisticsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Clears statistics for column(s) in a table.Clears statistics (cardinality, mean value, etc.) for a column in a specified table.

##### Arguments

<ul>
  <li>`table_name` - Name of a table, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table. A value of ‘\*’ clears statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used, `column_name` must be empty.</li>
  <li>`column_name` - Name of the column in `table_name` for which to clear statistics. The column must be from an existing table. An empty string clears statistics for all columns in the table. Must be empty when `table_name` is ‘\*’.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/clear_statistics.rs#L59-L77)
pub async fn [clear\_statistics\_with\_opts](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/clear-statistics.md#method.clear_statistics_with_opts)( \&self, table\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), column\_name: [String](https://doc.rust-lang.org/1.98.1/alloc/string/struct.String.html), options: [ClearStatisticsRequestOptions](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsRequestOptions.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[ClearStatisticsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Clears statistics for column(s) in a table.Clears statistics (cardinality, mean value, etc.) for a column in a specified table.

##### Arguments

<ul>
  <li>`table_name` - Name of a table, in \[schema\_name.]table\_name format, using standard name resolution rules. Must be an existing table. A value of ‘\*’ clears statistics on every user table the caller may read (excluding system schemas, views, and temporary tables); when used, `column_name` must be empty.</li>
  <li>`column_name` - Name of the column in `table_name` for which to clear statistics. The column must be from an existing table. An empty string clears statistics for all columns in the table. Must be empty when `table_name` is ‘\*’.</li>
  <li>`options` - The optional parameters; any left unset take the server’s defaults.</li>
</ul>

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/clear_statistics.rs#L80-L91)
pub async fn [clear\_statistics\_raw](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/clear-statistics.md#method.clear_statistics_raw)( \&self, request: &[ClearStatisticsRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[ClearStatisticsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`ClearStatisticsRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsRequest) to the `/clear/statistics` endpoint.

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/generated/clear_statistics.rs#L95-L107)
pub async fn [clear\_statistics\_from\_url](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/clear-statistics.md#method.clear_statistics_from_url)( \&self, url: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), request: &[ClearStatisticsRequest](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsRequest.md), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[ClearStatisticsResponse](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsResponse.md), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Sends a pre-built [`ClearStatisticsRequest`](https://docs.kinetica.com/content/api/rust/generated/api/struct.ClearStatisticsRequest) to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.