This document is archived and information here might be outdated.  Recommended version.

ITrafficDataManager.DeleteData Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Geodatabase > ESRI.ArcGIS.GeoDatabase > Interfaces > IT > ITrafficDataManager Interface > ITrafficDataManager.DeleteData Method
ArcGIS Developer Help

ITrafficDataManager.DeleteData Method

Deletes all dynamic traffic files in the specified folder which are older than the specified cutoff date.

[Visual Basic .NET]
Public Sub DeleteData ( _
    ByVal feedFolderPath As String, _
    ByVal utcCutoffDate As DateTime _
public void DeleteData (
    string feedFolderPath,
    DateTime utcCutoffDate
HRESULT DeleteData(
  BSTR feedFolderPath,
  DATE utcCutoffDate
feedFolderPath [in]

feedFolderPath is a parameter of type BSTR utcCutoffDate [in]
utcCutoffDate is a parameter of type DATE

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.


When real-time traffic is updated regularly, there is the potential for the dynamic traffic files to accumulate beyond what is needed.   Use DeleteData to clean up the dynamic traffic file folder to only contain the files referring to traffic after a specified date and time.

FeedFolderPath is a path to an existing directory that contains dynamic traffic files.

Any files that represent traffic from before the UTCCutoffDate will be deleted.

See Also

ITrafficDataManager Interface