remove-on-error.md (626B)
1 --- 2 c: Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al. 3 SPDX-License-Identifier: curl 4 Long: remove-on-error 5 Help: Remove output file on errors 6 Category: output 7 Added: 7.83.0 8 Multi: boolean 9 See-also: 10 - fail 11 Example: 12 - --remove-on-error -o output $URL 13 --- 14 15 # `--remove-on-error` 16 17 Remove the output file if an error occurs. If curl returns an error when told to 18 save output in a local file. This prevents curl from leaving a partial file in 19 the case of an error during transfer. 20 21 If the output is not a regular file, this option has no effect. 22 23 The --continue-at option cannot be used together with --remove-on-error.