Type identifier:
object:removeCategory: Object Operations
Removes Records that match filter criteria. Supports querying by any property and removes matching Records along with their relationships. Returns the removed Records for downstream processing.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | Initiates the remove operation |
| Varies | Varies | Dynamic handles for filter variables |
Input handles are dynamically generated based on the variables configuration:
id propertyNotes:
id for Record ID lookupHandle | Data Type | Description |
|---|---|---|
|
| Triggered when removal succeeds |
|
| Triggered on any error |
|
| The removed Record(s) with metadata |
removedfirstOnly) or Array (if multiple)Includes:
id: Record IDschemaId: Schema IDcreatedAt: Creation timestampupdatedAt: Last update timestampcreatedById: Creator IDupdatedById: Last updater IDProperty | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| Yes |
| CUID2 of the Schema to query |
|
| No | ID variable | Variable definitions for filtering |
|
| No | ID equals | Filter criteria for Record selection |
|
| No |
| Return single Record vs array |
|
| No |
| Maximum Records to remove |
|
| No |
| Skip N Records before removing |
|
| No |
| Sort order for selection |
|
| No |
| Property to sort by |
variablesarrayid variable with string typeNotes:
spaceIdentityId always availablefilterobjectStructure:
{
"path": "propertyName",
"type": "property",
"value": { "type": "contextValue", "valueId": "variableId" },
"operator": "eq"
}Scenario | Behaviour |
|---|---|
Schema not found | Sets error result, triggers |
Invalid filter | Triggers |
{
"type": "object:remove",
"data": {
"label": "Remove User",
"schemaId": "user-schema-uuid",
"variables": [
{
"id": "id",
"type": { "name": "id", "type": "string", "required": true }
}
],
"filter": {
"path": "id",
"type": "property",
"value": { "type": "contextValue", "valueId": "id" },
"operator": "eq"
},
"firstOnly": true,
"limit": 1
}
}{
"type": "object:remove",
"data": {
"label": "Remove Expired Orders",
"schemaId": "order-schema-uuid",
"variables": [
{
"id": "status",
"type": { "name": "status", "type": "string", "required": true }
}
],
"filter": {
"path": "status",
"type": "property",
"value": { "type": "contextValue", "valueId": "status" },
"operator": "eq"
},
"firstOnly": false,
"limit": 100
}
}{
"type": "object:remove",
"data": {
"label": "Cleanup Old Records",
"schemaId": "log-schema-uuid",
"filter": {
"type": "and",
"filters": [
{
"path": "processed",
"type": "property",
"value": { "type": "literal", "value": true },
"operator": "eq"
},
{
"path": "createdAt",
"type": "property",
"value": { "type": "contextValue", "valueId": "cutoffDate" },
"operator": "lt"
}
]
},
"firstOnly": false,
"order": "asc",
"orderBy": "createdAt"
}
}