Delete And Reingest
Use deletion commands when you need to remove old data, retry a failed range, or replace a written span.
Preflight
For local products, storage-deleting operations need local storage config:
export FIRECUBE_STORAGE_TYPE=local
export FIRECUBE_STORAGE_DRIVER=fsspec
export FIRECUBE_TARGET_PATH=/data/products
Always inspect before deleting:
Delete Tracked Records And Storage
Preview first:
Expected output:
Delete after the dry-run matches your intent:
Expected output:
Verify:
Expected output:
Delete Records Only
Use --manifest-only when the storage data should remain but Firecube should
forget the tracked records:
Expected output:
Delete By Date Range
Preview a date range:
Delete it:
firecube chunks delete \
--product-name "$PRODUCT_NAME" \
--range 2024-03-01,2024-03-02 \
--yes-i-really-mean-it
--start-date, --end-date, and --range filter by ChunkManager record
timestamps. Use chunks list --include-span first when you need to confirm
semantic coverage.
Delete Storage Chunks From Spans
Use delete-span when you want batch/span-level deletion from Zarr storage.
Preview:
Expected output:
Delete:
firecube chunks delete-span \
--product-name "$PRODUCT_NAME" \
--run-id docs-span-run \
--yes-i-really-mean-it
Expected output:
Use --force only when you intentionally want to delete spans that are not
time-chunk aligned:
firecube chunks delete-span \
--product-name "$PRODUCT_NAME" \
--run-id docs-span-run \
--force \
--yes-i-really-mean-it
Reingest A Range
Delete the range, then run ingestion again with force_reingest:
firecube chunks delete \
--product-name "$PRODUCT_NAME" \
--range 2024-03-01,2024-03-02 \
--dry-run
firecube chunks delete \
--product-name "$PRODUCT_NAME" \
--range 2024-03-01,2024-03-02 \
--yes-i-really-mean-it
firecube ingest <plugin> \
--source /data/source/2024-03-01 \
--target "$PRODUCT_URI" \
--product-name MY_PRODUCT \
--storage-type local \
--storage-driver fsspec \
--output-format zarr \
--write-mode direct \
--option force_reingest=true
Rebuild the snapshot after a large cleanup or reingest:
Failure Recovery
| Symptom | Meaning | Recovery |
|---|---|---|
Real chunks delete fails after dry-run worked |
Storage config does not match the product. | Set FIRECUBE_TARGET_PATH locally or configure S3. |
| Span is not aligned | It does not map cleanly to Zarr time chunks. | Use --force only if expanded deletion is acceptable. |
does not contain expected time dimension |
The cube uses a custom time dimension that older span records do not capture. | Re-run with --time-dim <name> matching the cube layout. |
explicit time dimension ... contradicts |
--time-dim disagrees with the span record or cube metadata. |
Drop --time-dim, or fix the span records if they are wrong. |
| Active claim blocks deletion | Another writer owns a write domain. | Use Recover Runs And Claims before deletion. |
Next Steps
- Inspect ChunkManager State — find records before deletion
- Recover Runs And Claims — clear active runs or claims that block deletion
- Snapshots — rebuild the read model after cleanup