remove-on-error.d 515 B

1234567891011121314
  1. c: Copyright (C) 1998 - 2022, Daniel Stenberg, <daniel@haxx.se>, et al.
  2. SPDX-License-Identifier: curl
  3. Long: remove-on-error
  4. Help: Remove output file on errors
  5. See-also: fail
  6. Category: curl
  7. Example: --remove-on-error -o output $URL
  8. Added: 7.83.0
  9. ---
  10. When curl returns an error when told to save output in a local file, this
  11. option removes that saved file before exiting. This prevents curl from
  12. leaving a partial file in the case of an error during transfer.
  13. If the output is not a file, this option has no effect.