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

scor’s picture

Status: Active » Closed (duplicate)

These 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

scor’s picture

@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

henrikakselsen’s picture

I just want so say that displaying that message/link is a really nice touch, scor. This kind of small usability improvements are very useful.