Delete Trace Configuration (Utility Network)

Summary

Deletes one or more trace configurations from a utility network.

Learn more about deleting a trace configuration

Usage

  • Using this tool, 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 trace configurations they create. The portal utility network owner can view and delete any trace configuration in the utility network.

Syntax

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

The utility network containing the trace configuration to be deleted.

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

The 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 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