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

# DROP ANALYZE

> DROP ANALYZE 删除自定义自动采集任务。

## 功能

删除自定义自动采集任务。自定义自动采集任务用于采集 CBO 统计信息。

默认情况下，数据库 会周期性自动采集表的全量统计信息。默认检查更新时间为 5 分钟一次，如果发现有数据更新，会自动触发采集。如果您不希望使用自动全量采集，可以设置 FE 配置项 `enable_collect_full_statistic` 为 `false`，系统会停止自动全量采集，根据您创建的自定义任务进行定制化采集。

## 语法

```SQL theme={null}
DROP ANALYZE <ID>
```

可以通过 SHOW ANALYZE JOB 查看任务的 ID。

## 示例

```SQL theme={null}
DROP ANALYZE 266030;
```

## 相关文档

[CREATE ANALYZE](/documents/cn/4.2/sql-reference/sql-statements/cbo_stats/CREATE_ANALYZE.md)：创建自定义自动采集任务。

[SHOW ANALYZE JOB](/documents/cn/4.2/sql-reference/sql-statements/cbo_stats/SHOW_ANALYZE_JOB.md)：查看自定义自动采集任务。

[KILL ANALYZE](/documents/cn/4.2/sql-reference/sql-statements/cbo_stats/KILL_ANALYZE.md)：取消正在运行中（Running）的统计信息收集任务。

想了解更多 CBO 统计信息采集的内容，参见[CBO 统计信息](/documents/cn/4.2/using_starrocks/Cost_based_optimizer.md)。


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