xf.li | bfc6e71 | 2025-02-07 01:54:34 -0800 | [diff] [blame^] | 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 | Multi: boolean |
| 10 | --- |
| 11 | When curl returns an error when told to save output in a local file, this |
| 12 | option removes that saved file before exiting. This prevents curl from |
| 13 | leaving a partial file in the case of an error during transfer. |
| 14 | |
| 15 | If the output is not a file, this option has no effect. |