Deletes a node type from the database.
$name: The machine name of the node type to delete.
function node_type_delete($name) {
$type = node_type_load($name);
db_delete('node_type')
->condition('type', $name)
->execute();
entity_invoke_bundle_hook('delete', 'node', $name);
module_invoke_all('node_type_delete', $type);
// Clear the node type cache.
node_type_cache_reset();
}