GDAL-DATASET-DELETE(1)

πŸ“¦
version 3.13.3 Β· 4 versions
, in alpine 3.24, arch rolling, ubuntu stonking

✨ 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 🫢


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