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

IMapLayers.ClearLayers Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapLayers Interface > IMapLayers.ClearLayers Method
ArcGIS Developer Help

IMapLayers.ClearLayers Method

Removes all layers from the map.

[Visual Basic .NET]
Public Sub ClearLayers ( _
public void ClearLayers (
HRESULT ClearLayers(

Product Availability

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

See Also

IMapLayers Interface