You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By the looks of it, the Sections::deleteEntryType method isn't actually deleting anything...
That method removes the entry type’s config from the project config. craft\services\Sections::handleDeletedEntryType() will end up getting called in turn, which handles the actual database row (soft) deletion.
Refresh the page to see that it still exists!
Sounds like maybe your project config is out of sync with the database somehow. Can happen if the section/database is added to the database directly, for example.
Try running php craft pc/rebuild first, and then delete the section/entry type.
What happened?
Description
It seems to be impossible to delete sections and entry types in Craft 4.
By the looks of it, the
Sections::deleteEntryType
method isn't actually deleting anything...cms/src/services/Sections.php
Lines 1323 to 1334 in 5d6f656
Steps to reproduce
Expected behavior
Deleting a section/entry type should delete the section/entry type.
Actual behavior
Deleting a section/entry type does not delete the section/entry type.
Craft CMS version
4.14.11.1
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: