Soft-remove a taxonomy node
client.taxonomy.nodes.softRemove(stringnodeID, NodeSoftRemoveParams { actor_id, tenant_id } params, RequestOptionsoptions?): Node { id, created_at, label, 13 more }
DELETE/v1/taxonomy/nodes/{node_id}
Soft-removes a taxonomy node (sets removed_at/removed_by) and records a soft_remove event
attributed to actor_id. The node is retained for audit but excluded from tree responses.
Tenant-scoped; returns 404 if the node does not belong to the tenant. While a tenant data purge
runs for the same tenant_id, the request is rejected with HTTP 409 (code tenant_write_conflict).
Parameters
nodeID: string
formatuuid
Returns
Soft-remove a taxonomy node
import FormbricksHub from '@formbricks/hub';
const client = new FormbricksHub({
apiKey: process.env['HUB_API_KEY'], // This is the default and can be omitted
});
const node = await client.taxonomy.nodes.softRemove('019f177f-9abe-78cd-8008-f40b58e3147d', {
actor_id: 'actor_id',
tenant_id: 'org-123',
});
console.log(node.id);{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"level": 0,
"node_type": "root",
"run_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"sort_order": 0,
"updated_at": "2019-12-27T18:11:19.117Z",
"children": [],
"cluster_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"description": "description",
"metadata": {
"foo": "bar"
},
"original_label": "original_label",
"parent_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"removed_at": "2019-12-27T18:11:19.117Z",
"removed_by": "removed_by"
}Returns Examples
{
"id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"created_at": "2019-12-27T18:11:19.117Z",
"label": "label",
"level": 0,
"node_type": "root",
"run_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"sort_order": 0,
"updated_at": "2019-12-27T18:11:19.117Z",
"children": [],
"cluster_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"description": "description",
"metadata": {
"foo": "bar"
},
"original_label": "original_label",
"parent_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
"removed_at": "2019-12-27T18:11:19.117Z",
"removed_by": "removed_by"
}