Skip To Content

Delete Network Category

Summary

Deletes a network category in a utility network.

Usage

  • A network category cannot be deleted if it is assigned to an asset type. A network category can be unassigned using the Set Network Category tool.

  • The connected ArcGIS Enterprise portal account must be the portal utility network owner.

  • The network topology must be disabled.

  • This tool should be executed when connected to the default version.

Syntax

DeleteNetworkCategory(in_utility_network, category_name)
ParameterExplanationData Type
in_utility_network

The utility network that contains the network category to be deleted.

Utility Network; Utility Network Layer
category_name

The name of the network category to delete.

String

Derived Output

NameExplanationData Type
out_utility_network

The updated utility network.

Utility Network

Code sample

DeleteNetworkCategory example (Python window)

Delete the Disconnect network category in a utility network.

import arcpy
arcpy.DeleteNetworkCategory_un('Utility Network', 'Disconnect')

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics