There is aare two functions which can help you out of this problem duringwith writing hook_uninstall()hook_uninstall()
:-
1.node_type_delete- This is for deleting the node_type.
2.node_delete- This is for all deleting the associated nodes.
- node_type_delete is for deleting the content type
- node_delete is for deleting the associated nodes