> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/tlumaczenia/usuwanie-kluczy-razem-z-elementem-wniosku.md).

# Deleting keys together with an application element

When, in the application editor, you delete a component, page, step, validator, service, or component item, Eximee Designer also removes that element's translation keys from the tab **Translations**, in all application languages. Therefore, the translation table no longer contains keys that nothing uses anymore.

A key used by another application element is not deleted. The editor notifies you about such keys with a message at the bottom of the screen.

{% hint style="info" %}
Deleting an element does not require confirmation. If you delete an element by mistake, press **Ctrl+Z**: the element returns together with the deleted keys and their texts in all languages.
{% endhint %}

***

## Operations that delete keys

| Operation                                                                        | Where you perform it                                                        |
| -------------------------------------------------------------------------------- | --------------------------------------------------------------------------- |
| Deleting a component, including a section with content and a composite component | Menu in the upper-right corner of the selected component, option **Delete** |
| Deleting a page                                                                  | Tab **Steps**, page menu, option **Delete**                                 |
| Deleting a step together with its pages                                          | Tab **Steps**, step menu, option **Delete**                                 |
| Deleting a validator from a component                                            | Window **Validators**, trash icon next to the validator                     |
| Replacing a validator with a validator of a different name                       | Window **Validators**, choosing another validator from the list             |
| Deleting a context help item                                                     | Context help window, trash icon next to the item                            |
| Deleting a dynamic section title                                                 | Window **Dynamic section titles**, trash icon **Delete title**              |
| Deleting dynamic labels of repetitive section buttons                            | Window **Dynamic button labels**, trash icon next to the item               |
| Detaching a service from a component                                             | Window **External data source**, trash icon next to the service name        |
| Replacing a service with a service of a different name                           | Window **External data source**, choosing another service from the list     |

Keys are not deleted when:

* you change the input parameters, condition, or mappings of the validator or service, but do not choose another validator or service,
* you delete the key manually in the tab **Translations**. This operation works as described in the chapter [Deleting a key](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/tlumaczenia.md#usuwanie-klucza).

***

## Which keys belong to the deleted element

The element is deleted together with all its content: a component with the components placed in it, a page with components, a step with all its pages. Each existing translation key that satisfies at least one of the three rules below belongs to the deleted element.

### The key starts with the element identifier

Keys created automatically when a component, page, or step is added have the form `<identifier>.<attribute>`, e.g. `GesTextField1.label`, `GesTextField1.placeholderText` or `Page2.title`. Keys that start with the identifier of the deleted element or any component in it, including the dot, are deleted.

**Example:** deleting component `GesCombobox1` deletes key `GesCombobox1.label`, but does not delete key `GesCombobox10.label`.

The rule does not apply to component items (context help, dynamic section titles, dynamic button labels), validators, or services. Their keys do not contain the element identifier.

### The key is indicated in the element attribute

A key indicated by the element in an attribute intended for a translation key is deleted. In [the application's XML definition](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/podglad-definicji-formularza-xml.md) the name of such an attribute ends with `Key`, e.g. `labelKey`, `titleKey` or `textKey`. In the editor, these include:

* field **Label (key)** and other fields with the note “(key)” in component properties,
* name of the item key [context help](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/pomoc-kontekstowa.md),
* **Title key** [dynamic section title](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/0-struktura-i-nawigacja/sekcja-section/sekcja-dynamiczne-tytuly-sekcji.md),
* field **Plus key** and **Minus key** dynamic button labels [repetitive section](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/7-komponenty-specjalne/sekcja-powtarzalna-repeatablesection.md),
* list of component translation keys [FrontendComponent](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/komponenty-rozszerzone/frontendcomponent.md).

The rule also includes manually attached keys that do not start with the element identifier.

**Example:** in the field **Label (key)** of the component `GesCombobox1` the key `amount.label`. Deleting the component deletes the key `amount.label`, if no other element uses it.

### The key is a validator or service message

Validators declare error message keys in their definition, and suggester-type services declare message keys. Deleted are:

* error keys of validators from components you delete, and of the validator you delete from a component or replace with another,
* message keys of services from components you delete, and of the service you detach or replace with another.

Script validator keys come from the version indicated by the validator in the application. For the “Current version” indicator, this is the current version. Messages are declared only by suggester-type services ([Attaching a suggester](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/zasilanie-wartosciami-z-zewnetrznych-zrodel/podpiecie-suggestera-komponent-z-podpowiedziami.md)), so detaching a different type of service does not delete any message key.

**Example:** suggester `AddressSuggester` declares a message with key `address.notFound`. After attaching it to a field, the key appears in the tab **Translations**. When you detach the service, and no other service in the application declares this key, the key `address.notFound` is deleted.

***

## When a key remains

### A key used by another element

The key remains when any value in the rest of the application equals it: the attribute of another component, page, or step, application metadata, or data model mapping. The editor lists such keys in a message that appears at the bottom of the screen for 10 seconds:

```
Translation keys used by other elements were not deleted: wspolna.etykieta
```

**Example:** components `GesTextField2` and `GesTextField3` have in the field **Label (key)** the same key `wspolna.etykieta`.

1. Delete `GesTextField2`. The key `wspolna.etykieta` remains, and the editor shows a message with its name. `GesTextField3` still displays the label.
2. Delete `GesTextField3`. The key `wspolna.etykieta` is deleted, the message does not appear.

{% hint style="warning" %}
A key entered inside a condition or script does not protect the key from deletion. The value is compared with the key name as a whole, and conditions and scripts are not searched. If the visibility condition of component B contains the expression `'GesTextField1.label' != ''`, deleting component `GesTextField1` also deletes key `GesTextField1.label`.
{% endhint %}

### A key declared by another validator or service

An error key of a validator remains as long as there is a validator in the application that declares it: the same validator on another component or another validator. The key disappears together with the last such validator. Message keys of services work the same way. When replacing a validator or service, the keys declared by the replacement validator or service also remain.

The editor keeps such keys without a message: the same validator on multiple components is a normal situation and does not require author action.

**Example:** five application fields have the same PESEL number validator.

1. Delete the validator from one field. The validator error keys remain, no message appears.
2. Delete the validator from the remaining fields. After removing it from the last field, the error keys are deleted.

Validator and service definitions that remain in the application are checked only when the deleted element has validator or service message keys or manually attached keys. An element that has only keys beginning with its identifier loses them without this check.

### Unavailable validator or service definition

* When the definition of the validator or service you are deleting or replacing cannot be read, their message keys are not deleted.
* When the definition of the validator or service that remains in the application cannot be read, keys that belong to the deleted element solely as validator or service messages are not deleted. Keys with the element identifier and keys indicated in attributes are deleted normally.

***

## Composite component

Texts [composite component](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/komponenty-rozszerzone/komponenty-zlozone.md) have keys starting with the component identifier, e.g. `GesComplexComponent1.GesText1.text`, so they disappear together with it. This also applies to texts changed in the application.

Keys from the composite component artifact that have not been changed in the application are not stored in the application. After deleting the component and reopening the application, they do not appear in the tab **Translations**.

***

## Undo and redo

* Press **Ctrl+Z**, to undo the deletion. One undo restores the element together with the deleted keys and their texts in all languages.
* Press **Ctrl+Y**, to redo the deletion. Redo deletes the same keys as the first deletion.
* The message about remaining keys does not appear when undoing or redoing.

***

## Examples

| Application state                                                                                                | Operation                             | Deleted keys                                                | Keys retained with a message |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------- | ----------------------------------------------------------- | ---------------------------- |
| `GesCombobox1` with keys `GesCombobox1.*` and manually attached key `amount.label`                               | Deletion `GesCombobox1`               | `GesCombobox1.*`, `amount.label`                            | —                            |
| Section `GesSection2` has attribute `ariaLabelKey` equal to `GesText2.text`, label `GesText2` is in this section | Deletion `GesText2`                   | —                                                           | `GesText2.text`              |
| As above                                                                                                         | Deletion `GesSection2`                | Section keys and `GesText2.text`                            | —                            |
| Five fields with the same validator                                                                              | Deleting the validator from one field | — (validator keys remain without a message)                 | —                            |
| The component key occurs only in the visibility condition of another component                                   | Deleting the component                | This key                                                    | —                            |
| Step `Step2` with pages `Page2` and `Page3`, each with one field                                                 | Deleting the step `Step2`             | `Step2.*`, `Page2.*`, `Page3.*` and the keys of both fields | —                            |

***

## Related pages

* [Translations](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/tlumaczenia.md)
* [Steps and pages of the form](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/kroki-i-strony-formularza.md)
* [Adding and parameterizing components](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/dodawanie-i-parametryzowanie-komponentow.md)
* [Complex validations](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/walidacja-wartosci-komponentow/walidacje-zlozone-wlasne.md)
* [Context help](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/pomoc-kontekstowa.md)
* [Section - dynamic section titles](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/0-struktura-i-nawigacja/sekcja-section/sekcja-dynamiczne-tytuly-sekcji.md)
* [Attaching a suggester](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/zasilanie-wartosciami-z-zewnetrznych-zrodel/podpiecie-suggestera-komponent-z-podpowiedziami.md)
* [Composite components](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/komponenty-rozszerzone/komponenty-zlozone.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/tworzenie-formularza/tlumaczenia/usuwanie-kluczy-razem-z-elementem-wniosku.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
