---
title: removeItems
description: "Learn how to build custom functionality when working with the React Data Tools by Kendo UI with the help of the removeItems."
api_reference: true
type: inner_api
slug: api_data-tools_removeitems
---
# removeItems
Removes the items from the passed `data` which match the passed `condition`.
#### Parameters
##### data
any[]
The data tree.
##### subItemsField
string
The field which points to the subitems collection of each data item.
##### condition
(item: any) => boolean
A function that will be executed for each data item
in the tree data and the items for which returns true will be removed.
#### Returns
any[]
- The new data tree.