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

IBasicMap.DeleteLayer Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IB > IBasicMap Interface > IBasicMap.DeleteLayer Method
ArcGIS Developer Help

IBasicMap.DeleteLayer Method

Deletes a layer from the map.

[Visual Basic .NET]
Public Sub DeleteLayer ( _
    ByVal pLayer As ILayer _
public void DeleteLayer (
    ILayer pLayer
HRESULT DeleteLayer(
  ILayer* pLayer
pLayer [in]

pLayer is a parameter of type ILayer*

Product Availability

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

See Also

IBasicMap Interface