Summary
Deletes one or more trace configurations from a utility network.
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)
Parameter | Explanation | Data 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
Name | Explanation | Data Type |
out_utility_network | The updated utility network. | Utility Network |
Code sample
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
Licensing information
- Basic: No
- Standard: Yes
- Advanced: Yes