1*6236dae4SAndroid Build Coastguard Worker--- 2*6236dae4SAndroid Build Coastguard Workerc: Copyright (C) Daniel Stenberg, <[email protected]>, et al. 3*6236dae4SAndroid Build Coastguard WorkerSPDX-License-Identifier: curl 4*6236dae4SAndroid Build Coastguard WorkerLong: remove-on-error 5*6236dae4SAndroid Build Coastguard WorkerHelp: Remove output file on errors 6*6236dae4SAndroid Build Coastguard WorkerCategory: output 7*6236dae4SAndroid Build Coastguard WorkerAdded: 7.83.0 8*6236dae4SAndroid Build Coastguard WorkerMulti: boolean 9*6236dae4SAndroid Build Coastguard WorkerSee-also: 10*6236dae4SAndroid Build Coastguard Worker - fail 11*6236dae4SAndroid Build Coastguard WorkerExample: 12*6236dae4SAndroid Build Coastguard Worker - --remove-on-error -o output $URL 13*6236dae4SAndroid Build Coastguard Worker--- 14*6236dae4SAndroid Build Coastguard Worker 15*6236dae4SAndroid Build Coastguard Worker# `--remove-on-error` 16*6236dae4SAndroid Build Coastguard Worker 17*6236dae4SAndroid Build Coastguard WorkerRemove output file if an error occurs. If curl returns an error when told to 18*6236dae4SAndroid Build Coastguard Workersave output in a local file. This prevents curl from leaving a partial file in 19*6236dae4SAndroid Build Coastguard Workerthe case of an error during transfer. 20*6236dae4SAndroid Build Coastguard Worker 21*6236dae4SAndroid Build Coastguard WorkerIf the output is not a regular file, this option has no effect. 22