Delete Network Category (Utility Network)

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.

  • When working with an enterprise geodatabase, the connected ArcGIS Enterprise portal account must be the portal utility network owner.

  • The network topology must be disabled.

  • When working with an enterprise geodatabase, this tool must be connected to the default version when executed.

Syntax

arcpy.un.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