Show / Hide Table of Contents

Method DeletePyramids

DeletePyramids()

Deletes pyramids stored in a pyramid file (.ovr) for the owning raster.

Declaration
public void DeletePyramids()
Remarks

This method deletes pyramids associated with the owning raster's external pyramid file (.ovr). It does not delete pyramids embedded in the source raster file.

Call this method only when PyramidInfo is not null, IsEmbedded is false, and ActiveBuildOperation is null.

When this method completes successfully, PyramidInfo is refreshed and may become null.

This method is supported only for file-based rasters that can use a pyramid file (.ovr).

Exceptions
Type Condition
InvalidOperationException

No deletable external pyramid file (.ovr) exists, or a pyramid build request is in progress for the raster.

IOException

The pyramid file cannot be deleted, or the raster location cannot be written to.

Applies to

Platforms and versions
TargetVersions
.NET300.1
.NET Windows300.1
.NET Android300.1
.NET iOS300.1
In this article
Provide feedback
Back to top Copyright © 2025 Esri.