Remove Orphans¶
The remove_orphans
action cleans up orphans files older than a specified time period. This action may take a long time to finish if you have lots of files in data and metadata directories. It is recommended to execute this periodically, but you may not need to execute this often.
Syntax for Flare Version flare:4.0
¶
version: v1
name: orphans
type: workflow
tags:
- orphans
workflow:
title: Remove orphan files
dag:
- name: orphans
title: Remove orphan files
spec:
tags:
- orphans
stack: flare:4.0
compute: runnable-default
flare:
job:
explain: true
logLevel: INFO
inputs:
- name: inputDf
dataset: dataos://icebase:actions/random_users_data
format: Iceberg
actions: # Flare Action
- name: remove_orphans # Action Name
input: inputDf # Input Dataset Name
options: # Options
olderThan: "1674201289720" # Timestamp in Unix Format