2

Is it possible to manually remove a content type?

I've packaged it in a feature and now the content type is no longer needed; it's been deprecated. I'm unable to delete the content type after disabling the feature in the features panel and in the modules page.

1 Answer 1

1

If you have devel install then go to sitename/devel/php and execute the following code.

node_type_delete('content_type_machine_name');

else you can run the same code inside hook_init() of your custom module. Hope it helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.