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