Knowledge Base/How to find data types which are not used in the project

How to find data types which are not used in the project

known issueDeveloperCLI

When using Uniform data types to pull data from another system, there is no indication in UI where the data types are used. You can use Uniform CLI to achieve this by following the steps below.

The scenario below is based on the Uniform sync command. Make sure this is configured in your project: https://docs.uniform.app/docs/guides/cli/commands/sync

  1. Call
npx uniform sync pull
  1. In the pulled content files with data types (uniform-data/dataType by default) find the needed data type and note the id value.
  2. Use any editor with file system search inside folders, search for noted id in the uniform-data folder, including subfolders. If there are results only in the dataType folder, this means the data type with this id isn’t used anywhere.
  3. Repeat the same steps to get the id and search for it for each data type.
Last modified: January 6, 2025