Delete Trace Configuration (Trace Network)

Summary

Deletes one or more trace configurations from a trace network.

Learn more about deleting a trace configuration

Usage

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

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

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

Syntax

arcpy.tn.DeleteTraceConfiguration(in_trace_network, trace_config_name)
ParameterExplanationData Type
in_trace_network

The trace network containing the trace configuration to be deleted.

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

The trace configurations to be deleted.

String

Derived Output

NameExplanationData Type
updated_trace_network

The updated trace network.

Trace Network

Code sample

DeleteTraceConfiguration example (Python window)

This sample Python script deletes a trace configuration from a trace network named HydroNetwork, referenced by its Global ID.

import arcpy
arcpy.DeleteTraceConfiguration_tn(r"HydroNetwork", 
                                  "{82DBAC8-8D89-6R64-8FX0-98FA01511}")

Environments

This tool does not use any geoprocessing environments.

Licensing information

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

Related topics