--- title: "remove last entered node()" slug: "basic-remove-last-node-value" updated: 2026-08-12T08:10:57Z published: 2026-08-12T08:10:57Z canonical: "docs.lobstersoftware.com/basic-remove-last-node-value" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # remove last entered node() This function can be used to remove the last instance of a entered node **a** during the construction of the Target tree. See example for details. The function cannot be used on node **a** itself. The return value of the function in case of success is *true*. If an incorrect node name is specified, an error will occur. ## Parameters | Parameter | Description | | --- | --- | | a | The name of the node. If nothing is specified, the parent node is used. | ## Example ![images/download/attachments/201686849/1663-version-1-modificationdate-1750241813495-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/1663-version-1-modificationdate-1750241813495-api-v2.png) Let's assume that in the Mapping the node *some_node* is created once in the target tree and in a loop the node *loop_node* is created four times. On field *remove*, in the second iteration of the loop, we execute the function described here, with the value *loop_node* for parameter **a**. Alternatively, we could choose to remove node *some_node* here. However, we could not execute the function on node *loop_node* itself. Structured representation of the input data in Phase 3. The target tree receives the values transferred via mapping and passes them on to Phase 4, Phase 5, or Phase 6. The core task of Phase 3. Mapping transfers data from the source structure to the target structure according to defined rules. In the process, fields can be transformed, functions can be called, and values can be calculated.