# Managing content-types

The Content-Types Builder is only accessible to create and update content-types when your Strapi application is in a development environment, else it will be in a read-only mode in other environments.


The Content-Types Builder allows to manage any existing content-type or component, even if it is already being used in the Content Manager. They can only be managed one at a time.

To manage a content-type or a component, click on its name in the Collection Types, Single Types or Components category.

# Editing content-types

Managing a content-type or component can include editing the general settings and the fields, but also deleting the whole content-type or component. For any chosen content-type of component, the right side of the Content-Types Builder interface displays all available editing options.

Content-Types Builder's edition interface

  • Next to the name and optional description of the content-type or component, an edit button (1) allows to access the general settings of the content-type or component.
  • In the top right corner, Cancel and Save buttons (2) allow to respectively cancel or save any ongoing modification.
  • Below the previous editing options, a table (3) lists all the fields created and configured for the content-type or component. From the fields table, it is possible to:
    • Click on the edit button to edit a field
    • Click on the trash button to delete a field
    • Click on the Add another field button to add another field to the content-type or component (see Configuring fields for content-types)
    • Click on the Configure the view button to access the view configuration interface (see Configuring the edit view)

✋ CAUTION

Editing a field allows renaming it. However, keep in mind that regarding the database, renaming a field means creating a whole new field and deleting the former one. Although nothing is deleted from the database, the data that was associated with the former field name will not be accessible from the admin panel of your application anymore.

# Deleting content-types

Content types and components can be deleted through the Content-Types Builder. Deleting a content-type automatically deletes all entries from the Content Manager that were based on that content-type. The same goes for the deletion of a component, which is automatically deleted from every content-type or entry where it was used.

To delete a content-type or component:

  1. In the Content-Types Builder navigation, click on the name of the content-type or component to delete.
  2. In the edition interface of the chosen content-type or component, click on the edit button on the right side of the content-type's or component's name.
  3. In the edition window, click on the Delete button.
  4. In the confirmation window, confirm the deletion.

✋ CAUTION

Deleting a content-type only deletes what was created and available from the Content-Types Builder, and by extent from the admin panel of your Strapi application. All the data that was created based on that content-type is however kept in the database. For more information, please refer to the related GitHub issue (opens new window).