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 π
π COPYRIGHT π
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
- 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