This is an automated email from the ASF dual-hosted git repository.
critas pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iotdb-docs.git
The following commit(s) were added to refs/heads/main by this push:
new 3b2815e2 delete devices only can delete the data related (#793)
3b2815e2 is described below
commit 3b2815e2bd013991ef622f68a57b010a6eb80d90
Author: leto-b <[email protected]>
AuthorDate: Wed Jul 2 10:42:20 2025 +0800
delete devices only can delete the data related (#793)
---
src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md | 2 +-
src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md | 2 +-
src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md | 14 +++++++-------
src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md | 14 +++++++-------
4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
b/src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
index 4099dc63..9a3e0071 100644
--- a/src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
+++ b/src/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
@@ -96,7 +96,7 @@ DELETE FROM table1 WHERE model_id = 'B'
## 2. Device Deletion
-When a device is written to IoTDB, its metadata is retained even if data is
deleted. To remove both the data and metadata of a device, you can use the
`DELETE DEVICES` statement.
+The device deletion statement supports deleting all devices and their related
data in the table.
### 2.1 Syntax Overview
diff --git a/src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
b/src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
index 4099dc63..9a3e0071 100644
--- a/src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
+++ b/src/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
@@ -96,7 +96,7 @@ DELETE FROM table1 WHERE model_id = 'B'
## 2. Device Deletion
-When a device is written to IoTDB, its metadata is retained even if data is
deleted. To remove both the data and metadata of a device, you can use the
`DELETE DEVICES` statement.
+The device deletion statement supports deleting all devices and their related
data in the table.
### 2.1 Syntax Overview
diff --git a/src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
b/src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
index dce9c095..136cf808 100644
--- a/src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
+++ b/src/zh/UserGuide/Master/Table/Basic-Concept/Delete-Data.md
@@ -21,11 +21,11 @@
# 数据删除
-## 1. 数据删除:
+## 1. 数据删除
数据删除可以通过 delete 语句来完成,其中可以通过指定标签和时间的过滤条件来删除部分数据。
-### 1.1 语法概览:
+### 1.1 语法概览
```SQL
DELETE FROM <TABLE_NAME> [WHERE_CLAUSE]?
@@ -55,7 +55,7 @@ ID_CONDITION:
- 对于时间条件,支持 >、<、=、<=、>= 五种运算符。
- 对于标签条件,目前仅支持 = 运算符。
-### 1.2 示例:
+### 1.2 示例
可以在[示例数据页面](../Reference/Sample-Data.md)中导入示例数据。可以使用这些数据来测试和执行示例中的SQL语句。
@@ -92,11 +92,11 @@ DELETE FROM table1
DELETE FROM table1 WHERE model_id = 'B'
```
-## 2. 设备删除:
+## 2. 设备删除
-当一个设备写入后,在 IoTDB 中即保留了其元数据,数据删除语句无法删除设备的元数据,可以使用设备删除语句删除设备的所有数据和元数据。
+设备删除语句支持删除表里所有设备及相关数据。
-### 2.1 语法概览:
+### 2.1 语法概览
```SQL
DELETE DEVICES FROM tableName=qualifiedName (WHERE booleanExpression)?
@@ -104,7 +104,7 @@ DELETE DEVICES FROM tableName=qualifiedName (WHERE
booleanExpression)?
- WHERE 仅支持对标签的等值过滤,条件之间仅可使用 AND 和 OR 运算符连接,不支持时间条件。
-### 2.2 示例:
+### 2.2 示例
```SQL
DELETE DEVICES FROM table1 WHERE device_id = '101'
diff --git a/src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
b/src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
index dce9c095..136cf808 100644
--- a/src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
+++ b/src/zh/UserGuide/latest-Table/Basic-Concept/Delete-Data.md
@@ -21,11 +21,11 @@
# 数据删除
-## 1. 数据删除:
+## 1. 数据删除
数据删除可以通过 delete 语句来完成,其中可以通过指定标签和时间的过滤条件来删除部分数据。
-### 1.1 语法概览:
+### 1.1 语法概览
```SQL
DELETE FROM <TABLE_NAME> [WHERE_CLAUSE]?
@@ -55,7 +55,7 @@ ID_CONDITION:
- 对于时间条件,支持 >、<、=、<=、>= 五种运算符。
- 对于标签条件,目前仅支持 = 运算符。
-### 1.2 示例:
+### 1.2 示例
可以在[示例数据页面](../Reference/Sample-Data.md)中导入示例数据。可以使用这些数据来测试和执行示例中的SQL语句。
@@ -92,11 +92,11 @@ DELETE FROM table1
DELETE FROM table1 WHERE model_id = 'B'
```
-## 2. 设备删除:
+## 2. 设备删除
-当一个设备写入后,在 IoTDB 中即保留了其元数据,数据删除语句无法删除设备的元数据,可以使用设备删除语句删除设备的所有数据和元数据。
+设备删除语句支持删除表里所有设备及相关数据。
-### 2.1 语法概览:
+### 2.1 语法概览
```SQL
DELETE DEVICES FROM tableName=qualifiedName (WHERE booleanExpression)?
@@ -104,7 +104,7 @@ DELETE DEVICES FROM tableName=qualifiedName (WHERE
booleanExpression)?
- WHERE 仅支持对标签的等值过滤,条件之间仅可使用 AND 和 OR 运算符连接,不支持时间条件。
-### 2.2 示例:
+### 2.2 示例
```SQL
DELETE DEVICES FROM table1 WHERE device_id = '101'