unable to delete a custom content type
Make sure you actually uninstall the module as opposed to just disabling it.

Uninstall is an additional tab on Admin > Modules page.

If that doesn't work, you could try calling node_type_delete($type) from somewhere.