This key toggles whether CloudCannon will remove inputs that are not present in a Structure from a file before loading it in an Editing Interface.
Setting this key to true will remove inputs that are not present in a Structure from a file before loading it in an Editing Interface. Non-Structure inputs will not be visible in the Visual Editor, Content
Editor, or Data Editor, and saving the file
will remove them from the file before persisting the changes to your Git repository.
You can also configure this behavior for specific values of a Structure using values[*].remove_extra_inputs.
Appears in
└── Structure
└── remove_extra_inputsType
boolean
Default value
true
Examples
In this example, we want to delete old inputs that are not in the Structure from the associated file.
Copied to clipboard
_structures:
related_articles:
remove_extra_inputs: true
values:
- value:
name:
description:
url:{
"_structures": {
"related_articles": {
"remove_extra_inputs": true,
"values": [
{
"value": null,
"name": null,
"description": null,
"url": null
}
]
}
}
}