jon-wei commented on a change in pull request #11501:
URL: https://github.com/apache/druid/pull/11501#discussion_r677838673
##########
File path: docs/ingestion/data-management.md
##########
@@ -95,18 +95,23 @@ A data deletion tutorial is available at [Tutorial:
Deleting data](../tutorials/
## Kill Task
-Kill tasks delete all information about a segment and removes it from deep
storage. Segments to kill must be unused (used==0) in the Druid segment table.
The available grammar is:
+Kill tasks delete all information about a segment and removes it from deep
storage. Segments to kill must be unused (used==0) in the Druid segment table.
+
+The available grammar is:
```json
{
"type": "kill",
"id": <task_id>,
"dataSource": <task_datasource>,
"interval" : <all_segments_in_this_interval_will_die!>,
+ "markAsUnused": <true|false>,
"context": <task context>
}
```
+If `markAsUnused` is true, the kill task will first mark any segments within
the specified interval as unused, before deleting the unused segments within
the interval.
Review comment:
I added a WARNING section to the kill task
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]