iw7-mod/deps/curl/docs/cmdline-opts/remove-on-error.md
2024-08-13 05:15:34 -04:00

561 B

c SPDX-License-Identifier Long Help Category Added Multi See-also Example
Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. curl remove-on-error Remove output file on errors curl 7.83.0 boolean
fail
--remove-on-error -o output $URL

--remove-on-error

When curl returns an error when told to save output in a local file, this option removes that saved file before exiting. This prevents curl from leaving a partial file in the case of an error during transfer.

If the output is not a regular file, this option has no effect.