smartsuite_remove_layout_field
Remove a field's placement from the record-view layout without deleting the field. Clears orphaned layout entries left after the underlying field is deleted.
Instructions
Remove a field's PLACEMENT from the record-view layout without deleting the field. Requires readwrite/admin + SMARTSUITE_ENABLE_SCHEMA_WRITE. Its main use is clearing ORPHANED layout entries — slugs still laid out after the underlying field was deleted, which nothing else can reach (delete_field 404s because the field is already gone, and move_layout_field refuses a slug that is not in the schema). Pass removeOrphans:true to clear every orphaned entry at once, or slug to remove one specific placement; a dry run lists any orphans it finds either way. Removing the placement of a field that still exists hides it from the record view (the field and its data are untouched) and is called out in the preview. Dry-run preview unless confirm:true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | No | The field slug whose placement to remove. Omit when using removeOrphans. | |
| tabId | No | Which layout to edit when tabs are enabled: a tab id, "all" (top-level + every tab), or "top". Orphans usually need "all". | |
| confirm | No | Must be true to apply (default false = preview). | |
| applicationId | Yes | The application (table) ID. | |
| removeOrphans | No | Remove every layout entry whose field no longer exists. |