Help topics

Retiring a model fails

Symptoms

Retiring a model fails with an error in this form:

articles is referenced by pages

The text names two models. The first name is the model you want to retire. The second name is the other model that still uses it. The model stays active.

Cause

Morphic does not retire a model while another active model uses it. A model counts as used when another model names it as a parent type, as a relation target, or in a component field.

Fix

Only an administrator can retire a model.

Note: Links that already exist stay in the database after you delete the relation. Morphic no longer shows or returns them.

  1. Open the model named in the error.
  2. Select Fields.
  3. Select the relation row.
  4. In the relation dialog, select Delete relation.
  5. In the confirmation dialog, select Delete relation.
  6. Select Save changes.
  7. Retire the model you first wanted to retire.

If a parent type or a component field uses the model, change that model first.

Then retire the model

  1. Open the model you want to retire.
  2. Select Advanced.
  3. Select Retire.
  4. In the dialog, select Retire.

Result: Morphic shows the toast Retired and returns to the Models list. The entries of the retired model stay in the database. The API no longer lists the model.

Still not working?

Collect the exact error text and the names of the models involved. Check the parent types and component fields of the other models too.

Contact the Morphic team through the contact form on the website with your Morphic version and the exact error text.