Logmanager dokumentace
Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Přepnout tmavý/světlý/automatický režim Zpět na domovskou stránku

Delete

This section is available only in English

Delete block is used to erase a key and its value from the dictionary.

Block is used e.g. for:

  • erasing keys and their values from input data in JSON format, when keys are created in the source message,
  • dictionary created from regular terms, where key names are created dynamically.

In both cases may be needed to erase some keys from the input data.

Block XML representation

XML representation of statement_delete block

<xml xmlns="http://www.w3.org/1999/xhtml">
  <block type="statement_delete">
    <value name="VALUE">
      <block type="variables_get">
        <field name="VAR">item</field>
      </block>
    </value>
  </block>
</xml>

Example of visual representation

Block "Delete"

Block “Delete”

Example of block usage

Example of "Delete" block

Example of “Delete” block

In the example this block is used to delete key “ip” from dictionary “item”.

Processed results

Result of "Delete" block

Result of “Delete” block