Closed (duplicate)
Project:
Schema.org
Version:
7.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2012 at 01:19 UTC
Updated:
6 Aug 2012 at 07:59 UTC
I enabled the Schema.org: Event and Schema.org: Person modules. I then disabled and un-installed them. But the schemaorg_event and schemaorg_person node type didn't disappear. Furthermore there is no "delete node type" link in the /admin/structure/types page. It is impossible to delete such node types.
Comments
Comment #1
scor commentedThese schema.org examples are powered by Features. The current behavior of Features is to not delete any data / content type / field, and it leaves it up to the site administrator.
That said, once you disable a feature, you should be able to remove the content type. That's a bug in core: #1441950: Node types removed from hook_node_info with base = 'node_content' cannot be deleted. In the meantime, a work around is to go directly to the delete page of your content type, for example admin/structure/types/manage/schemaorg-person/delete
Comment #2
scor commented@cesareaugusto I have added a message to be displayed when disabling the schema.org examples (event and person) with a direct link to remove the content type. If you haven't deleted yours yet, you can re-enable the examples and disable them again, and you will see a link to delete your content type.
http://drupalcode.org/project/schemaorg.git/commit/0de1392
Comment #3
henrikakselsen commentedI just want so say that displaying that message/link is a really nice touch, scor. This kind of small usability improvements are very useful.