remove()
remove<
RG>(query:RG,pathOrID:string|Path):RG
Defined in: packages/core/src/utils/queryTools.ts:259
Removes a rule or group from a query.
Type Parameters
| Type Parameter |
|---|
RG extends RuleGroupTypeAny |
Parameters
| Parameter | Type | Description |
|---|---|---|
query | RG | The query to update. |
pathOrID | string | Path | The path or ID of the rule or group to remove. |
Returns
RG
The new query with the rule or group removed.
caution
API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.