Clarify what happens to content when you delete a content type

Created on 26 February 2021, about 4 years ago
Updated 13 August 2024, 8 months ago

Documentation location/URL

In the task tutorial, 6.2. Deleting a Content Type β†’ , the steps to delete a content type are complete, but we don't mention the implications of this action, such as what happens to the content when a content type is deleted (and can you even delete a content type if there is content already created with it).

Problem/Motivation

Common questions related to deleting a content type are not addressed in this tutorial. Questions such as: If I delete this content type, 1) what happens to the content? and 2) what happens to the fields?

The motivation for this is that at Drupalize.Me, where we host the User Guide, we received feedback asking "What happens to the content when you delete a content type?"

Proposed resolution

The various implications of deleting a content type could be addressed in a "concept" tutorial related to deleting content types, possibly including fields in it as well.

OSTraining has a blog post on this topic that could be helpful: https://www.ostraining.com/blog/drupal/deleting-content-types/

Remaining tasks

- Decide if this is something we want to address and how we want to address it (a new concept tutorial or an addition to this task tutorial).
- Do it.

πŸ“Œ Task
Status

Needs work

Version

9.1

Component

User Guide content

Created by

πŸ‡ΊπŸ‡ΈUnited States Amber Himes Matz Portland, OR USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States Amber Himes Matz Portland, OR USA

    Here's some additional feedback/questions we (Drupalize.Me) received about this tutorial:

    Do you need to delete the content type's custom fields first before deleting
    the content type? In D7, I think if the custom fields were not deleted first,
    they still exist in the database. Not sure if this is taken care of in D8+,
    but it would be nice to make that clear regardless.

Production build 0.71.5 2024