File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -532,6 +532,27 @@ passed using the optional `target_storage_options` setting.
532532}
533533```
534534
535+ Sometimes you may want to start a new target dataset from scratch when calling
536+ ` zappend ` . A typical case is testing if a given configuration yields the desired
537+ results. The configuration flag ` force_new ` can be used to delete existing
538+ target datasets (and an existing lock) upfront.
539+
540+ ``` json
541+ {
542+ "target_dir" : " s3://wqservices/cubes/chl-2023.zarr" ,
543+ "force_new" : true
544+ }
545+ ```
546+
547+ However, keep in mind that the deletion is not a transaction that can be rolled
548+ back. Therefore, a log message with warning level will be emitted if the
549+ ` force_new ` flag is set.
550+
551+ !!! danger "Setting ` force_new ` "
552+ The configuration flag ` force_new ` will force generating a new
553+ target dataset. If it already exists, it will be ** permanently deleted** !
554+ If the deletion fails, there will be no rollback.
555+
535556### Slice Datasets
536557
537558If the slice paths passed to the ` zappend ` tool are given as URIs,
You can’t perform that action at this time.
0 commit comments