---
title: "Catch a removed field in a Directus schema snapshot"
description: "A snapshot of a small project is thousands of lines long. A removed field is easy to miss in the difference."
slug: "h1-need"
type: article
locale: en-US
canonical: "https://www.coremodels.io/connector/directus/h1-need"
updatedAt: "2026-12-04T12:00:00+00:00"
last_updated: "2026-12-04T12:00:00+00:00"
---

# Catch a removed field in a Directus schema snapshot

Directus can write its whole schema to one file and apply it to another server. Applying a snapshot without a field removes the column and its data. The file does not say who reads that column.

## An example

Take the CMS starter template that Directus Labs publishes. Between January and July 2026 its authors removed the field `openai_api_key` from the collection `globals`.

## What an agent sees

An agent with access to Directus can change the schema. The governed model gives it, and you, a pass or a fail before the snapshot is applied.

## What you can do today

- The schema snapshot as JSON. Directus can also write YAML, which CoreModels does not read. CoreModels needs no login to Directus.
- Your assistant imports it into a CoreModels project.
- After the next change, the assistant audits the new file. The answer is pass or fail and names each removed field and each changed type.
- The same check runs in a pull request with one command.

[See the recorded run, with every prompt and answer](/recipe/directus/snapshot-change-gate)

## What it does not do

- A field that becomes required is not reported.
- A collection that is deleted is not reported. Its fields are no longer compared.
- The audit also gives advice about hidden and read-only fields. Those lines are warnings and do not make it fail.
- CoreModels reads the file you give it. It has no login to Directus and it writes nothing back.

## Recipes

- [Catch a removed field in a Directus schema snapshot](https://www.coremodels.io/recipe/directus/snapshot-change-gate): One field left the settings collection. 273 others stayed.

[Start building](https://www.coremodels.io/start)

14-day free trial. Builder $49/mo after the trial. Cancel any time.

## Sitemap

- [Sitemap in markdown](https://www.coremodels.io/sitemap.md)
