Back to Curl

`--remove-on-error`

docs/cmdline-opts/remove-on-error.md

latest359 B
Original Source

--remove-on-error

Remove the output file if an error occurs. If curl returns an error when told to save output in a local file. This prevents curl from leaving a partial file in the case of an error during transfer.

If the output is not a regular file, this option has no effect.

The --continue-at option cannot be used together with --remove-on-error.