# Archive a feature toggle

Once the rollout phase of a feature toggle is completed exist two options:

# Archive a feature toggle

If the feature toggle becomes permanent, it is archived: it must to remain with its default values in MarfeelTenant features.json file (opens new window).

Tenants for which the feature is disabled must overwrite the value accordingly in their features.json. The code remains wrapped by the feature toggle.

# Remove a feature toggle

If the feature toggle is not necessary anymore, it is removed following these steps:

  1. Delete it from code. The condition(s) using this feature toggle are removed, either to use this code permanently or just removing the whole code if we are discarding it.

  2. Delete it from features json schema (opens new window). Once it is removed, each time a tenant is built, if its features.json included some configuration for this feature, the json validation fails: it is every developer's responsibility to remove it.