Module content type not removed after uninstall My module adds content types by implementing hook_node_info. After disabling and uninstalling the module, the content type is still in the database and is merely marked as disabled.

NOTE: I also add create and instantiate custom fields for the created content type.

Since according to this answer content types created in hook_node_info are deleted automatically, is my problem a sign if DB inconsistency or am I doing something else wrong.

Code:

function test_core_node_info() {
    // Name of the proper localization function
    $t = get_t ();
    // Adding author
    return array (
            'test' =&gt; array (
                    'name' =&gt; $t ( 'Test' ),
                    'base' =&gt; 'test_module',
                    'description' =&gt; $t ( 'Test' ),
                    'title_label' =&gt; $t ( 'Title' ),
                    'locked' =&gt; TRUE 
            ) 
    );
}


-- EDIT --

I mentioned removing instead of uninstalling. This is corrected now.
You shall have to uninstall the module to get the type deleted automatically.  Just disabling it will not remove anything.  Deleting the module after disabling it - without uninstalling it first - is not a good idea.

After disabling the module, click on the “uninstall” tab at the top of the modules page and check the module you want to uninstall, then click the "Uninstall" button.