--- title: "Remove element (optional/repeatable element)" slug: "freaction-remove-element" updated: 2026-05-05T09:21:17Z published: 2026-05-05T09:21:17Z canonical: "docs.lobstersoftware.com/freaction-remove-element" --- > ## 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 element (optional/repeatable element) > [!NOTE] > Actions – Abstract > > The **Remove element** action is used to remove elements from an [Optional elements](/v1/docs/en/fre-optional-element-container-vo) container or a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container. The **Remove element** action can be used to remove elements from one of the following container types: - [Optional elements](/v1/docs/en/fre-optional-element-container-vo) container - [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container The action is only available as a choice under **Action type**, if an appropriate **target element** has been linked. Configuration details are described in the sections below for each container type. Executing **Remove element** is equivalent to clicking the ![images/s/-95e2zf/9012/8yg2g7/_/images/icons/emoticons/forbidden.svg](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/forbidden(7).svg) symbol for the corresponding container and may assume that role completely, e.g. if the symbol is defined as invisible in a form because removing elements should only be driven by behaviors. Elements can be added to both types of containers by related action [Add element (optional/repeatable element)](/v1/docs/en/freaction-add-element). ## Optional element container In combination with an [Optional elements](/v1/docs/en/fre-optional-element-container-vo), the **target element** must be one of the optional elements in the container. When the action is executed, the option linked as a target element is removed if it exists in the container. Configuration example: - An [Optional elements](/v1/docs/en/fre-optional-element-container-vo) container provides options for an order, which may contain complex content (here: remarks), and therefore should only be removed after user confirmation. - Removing the option should only be possible via a button within the option, which triggers the **Remove elements** action depending on the [User confirmation](/v1/docs/en/frebehav-user-confirm) ("Yes"). ![images/download/attachments/189433024/image2019-3-21_16-8-47-version-1-modificationdate-1728369464114-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-3-21_16-8-47-version-1-modificationdate-1728369464114-api-v2.png) - In the screenshot on the right, the behavior for the **Remove** button for "Option A" is shown. - For "Option B", this behavior can be copied with an adjustment for the target element. In place of [User confirmation](/v1/docs/en/frebehav-user-confirm), another behavior, e.g. [Static](/v1/docs/en/frebehav-static) (true), can be used to delete without confirmation. Result: | Example input in a form | After clicking "Remove" | | --- | --- | | ![images/download/attachments/189433024/image2019-3-21_16-17-13-version-1-modificationdate-1728369464117-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-3-21_16-17-13-version-1-modificationdate-1728369464117-api-v2.png) | ![images/download/attachments/189433024/image2019-3-21_16-17-45-version-1-modificationdate-1728369464120-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2019-3-21_16-17-45-version-1-modificationdate-1728369464120-api-v2.png) | ## Repeatable element container In combination with a [Repeatable element](/v1/docs/en/fre-duplicate-element-container-vo) container, the **target element** for this action must be the **repeated element** inside the container. - If the action is called from within the **repeatable element** and without the option **For duplicates also** checked, only the current instance of the repeated element is removed. - With the option **For duplicates also** checked, all instances are removed. The action can be called from inside or outside the container. Configuration example: In the context of the example for the [Optional elements](/v1/docs/en/fre-optional-element-container-vo) container in the previous section, the following behavior will remove all remarks for "OPTION A": ![images/download/attachments/189433024/image-2024-10-8_9-1-6-version-1-modificationdate-1728370866289-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-2024-10-8_9-1-6-version-1-modificationdate-1728370866289-api-v2.png) - The repeated element "Remark_A" defining the row element for **Remarks for OPTION A** was linked as a target element here.