--- title: GanttTaskRemoveClickEvent description: "Learn how to build custom functionality when working with the React Gantt by Kendo UI with the help of the GanttTaskRemoveClickEvent." api_reference: true type: inner_api slug: api_gantt_gantttaskremoveclickevent --- # GanttTaskRemoveClickEvent Represents the object of the `onTaskRemoveClick` Gantt event.
| Name | Type | Default | Description |
|---|---|---|---|
| #### dataItem |
any
|
The data item which corresponds to the clicked task. | |
| #### level |
number[]
|
An array of indexes of each parent and current item in the data tree. | |
| #### nativeEvent |
any
|
A native DOM event. | |
| #### syntheticEvent |
SyntheticEvent<any>
|
A React Synthetic Event. | |
| #### target |
[GanttHandle]({% slug api_gantt_gantthandle %})
|
An event target. |