GDAL-VSI-DELETE(1)

πŸ’… NAME πŸ’…

okay bestie, gather round β€” gdal-vsi-delete deletes files that live on the GDAL Virtual System Interface (VSI). that's it, that's the job. πŸ—‘οΈβœ¨

Added in version 3.11. so she's new-new, treat her nice πŸŽ€


✨ SYNOPSIS ✨

Usage: gdal vsi delete [OPTIONS] <FILENAME>

Delete files located on GDAL Virtual System Interface (VSI).

Positional arguments:
  --filename <FILENAME>   File or directory name to delete [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]

Options:
  -r, -R, --recursive     Delete directories recursively

🌸 DESCRIPTION 🌸

so gdal vsi delete deletes files and directories that live on GDAL Virtual File Systems β€” think compressed stuff, network hosted stuff, etc… πŸ‘‘ the ones you already know and love: /vsimem, /vsizip, /vsitar, /vsicurl, ....

it's giving the UNIX rm command but make it VSI, and heads up β€” gdal vsi rm is literally just an alias for gdal vsi delete. same girl, two names πŸ’…

⚠️ WARNING: be careful, bestie. 🚨 This command cannot be undone. no undo button, no ctrl+z, no "wait wait wait". And it can also act on the "real" file system β€” like, your actual files. so. vibe check before you hit enter, fr fr 😭

πŸ¦‹ Options πŸ¦‹

  • -r, -R, --recursive β€” delete directories recursively. all the way down, no survivors, periodt πŸ’€

⭐ RETURN STATUS CODE ⭐

the program returns status code 0 when everything's a success, and non-zero when something went wrong 🫢 (also: non-blocking errors that get emitted as warnings still count as a successful execution, so don't panic over those, they're just little notifs πŸ’–)


🌈 EXAMPLES 🌈

🌸 Example 1: Delete recursively files from /vsis3/bucket/my_dir

$ gdal vsi delete -r /vsis3/bucket/my_dir

πŸ’œ AUTHOR πŸ’œ

Even Rouault <even.rouault@spatialys.com> β€” the icon, the legend, the main character πŸ‘‘


1998-2026


okay that's the whole page bestie, you're officially fluent in gdal vsi delete 🌸✨ this one came from the GDAL manual, source/version dated Aug 18, 2026 β€” go forth and delete responsibly, mwah πŸ’…πŸ¦‹

πŸ“¦ where this page comes from