GDAL-DATASET-DELETE(1)
β¨ GDAL-DATASET-DELETE(1) β¨
okay so bestie, welcome to the GDAL-DATASET-DELETE(1) manual page, from the GDAL manual set π this is the one that yeets datasets for you. sit down, grab a lil drink, we're gonna go through it together π«Ά
πΈ NAME πΈ
gdal-dataset-delete β delete dataset(s) π
Added in version 3.12. β
gdal dataset delete deletes dataset(s), including potential side-car/associated files. like, it takes the whole vibe out, not just the main file. no cap. π₯
π SYNOPSIS π
Usage: gdal dataset delete [OPTIONS] <FILENAME>
Delete dataset(s).
Positional arguments:
--filename <FILENAME> File or directory name [may be repeated] [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]
Advanced Options:
-f, --format <FORMAT> Dataset format
β¨ OPTIONS β¨
--filename <FILENAME>β literally any file name or directory name you want gone. it is required, bestie, you cannot skip it. and you can repeat it as many times as your heart desires, so go off π-f,---format <FORMAT>β the dataset format. this one is your lil backup plan when the automatic detection is being dramatic and just... doesn't work π it's giving "here, let me help you out".
π RETURN STATUS CODE π
the program is gonna hand you a status code of 0 when everything slays, and something non-zero when it's an actual error. and listen β non-blocking errors that get emitted as warnings? those still count as a successful execution. so don't panic if you see a lil warning, it's fine, it's fine πβ¨
π EXAMPLES π
Example 1: Delete a dataset π¦
$ gdal dataset delete NE1_50M_SR_W.tif
look at her. one command. gone. iconic. periodt. π
π AUTHOR π
Even Rouault <even.rouault@spatialys.com> β legend behaviour fr fr π«Ά
π COPYRIGHT π
1998-2026 β a whole era of copyright, we love to see it πΈ
π THE CUTE SIGN-OFF π
this page came out with the GDAL release cycle, dated Aug 18, 2026, and yes it's still rocking the manual name GDAL-DATASET-DELETE(1) at the bottom like a lil signature. mwah. take care of your datasets, or don't β that's literally what this command is for π
β¨π
π¦ where this page comes from
- alpine 3.24: gdal-doc 3.13.3-r0 Β· MIT
- arch rolling: gdal 3.13.3-6 Β· MIT
- ubuntu stonking: gdal-bin 3.13.3+dfsg-1ubuntu4 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms