# `gdal raster overview delete`

Added in version 3.11.

Delete overviews of a raster dataset

## Synopsis

    Usage: gdal raster overview delete [OPTIONS] <DATASET>

    Deleting overviews.

    Positional arguments:
      --dataset <DATASET>                Dataset (to be updated in-place, unless --read-only) [required]

    Common Options:
      -h, --help                         Display help message and exit
      --json-usage                       Display usage as JSON document and exit
      --config <KEY>=<VALUE>             Configuration option [may be repeated]
      -q, --quiet                        Quiet mode (no progress bar)

    Options:
      --external                         Delete external overviews

    Advanced Options:
      --oo, --open-option <KEY>=<VALUE>  Open options [may be repeated]

## Description

gdal raster overview delete can be used to delete all existing overviews of a dataset.

Note

For most file formats (including GeoTIFF or GeoPackage), the space previously occupied by the removed overviews may not be reclaimed. It might be needed for use gdal raster convert to create a new compact dataset.

--dataset <DATASET>

  Dataset name, to be updated in-place by default (unless `--external` is specified). Required.

--external

  Remove external `.ovr` overviews.

## Examples

### Example 1: Delete overviews of a GeoTIFF file.

    gdal raster overview delete my.tif