Delete Trace Configuration (Utility Network)

Summary

Deletes one or more named trace configurations from a utility network.

Learn more about deleting a trace configuration

Usage

  • Using this tool, named trace configurations are permanently deleted from the utility network.

  • When working with an enterprise geodatabase, the input utility network must be from a utility network service.

  • When working with an enterprise geodatabase, the connected portal account can only view and delete named trace configurations they create. The portal utility network owner can view and delete any named trace configurations in the utility network.

Parameters

LabelExplanationData Type
Input Utility Network

The utility network containing the named trace configuration to be deleted.

Utility Network; Utility Network Layer
Trace Configuration

The named trace configurations to be deleted.

String

Derived Output

LabelExplanationData Type
Updated Utility Network

The updated utility network.

Utility Network

arcpy.un.DeleteTraceConfiguration(in_utility_network, trace_config_name)
NameExplanationData Type
in_utility_network

The utility network containing the named trace configuration to be deleted.

Utility Network; Utility Network Layer
trace_config_name
[trace_config_name,...]

The named trace configurations to be deleted.

String

Derived Output

NameExplanationData Type
out_utility_network

The updated utility network.

Utility Network

Code sample

DeleteTraceConfiguration example (Python window)

The following Python script deletes a single named trace configuration, referenced by its Global ID, from a utility network called "Elec Utility".

import arcpy
arcpy.DeleteTraceConfiguration_un(r"SampleUNService\Elec Utility Network", 
                                  "{01AE7AC8-8D89-4C55-8FB0-75E80FA01059}")

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics