airflow db clean

Purge old records in metastore tables

Options

NameDescription
-h, --helpShow this help message and exit
--clean-before-timestamp <clean_before_timestamp>
  • Required ✳
--dry-runPerform a dry run
--skip-archiveDon't preserve purged records in an archive table
-t, --tables <tables>Table names to perform maintenance on (use comma-separated list). Options: ['callback_request', 'celery_taskmeta', 'celery_tasksetmeta', 'dag', 'dag_run', 'dataset_event', 'import_error', 'job', 'log', 'rendered_task_instance_fields', 'sla_miss', 'task_fail', 'task_instance', 'task_reschedule', 'xcom']
-v, --verboseMake logging output more verbose
-y, --yesDo not prompt to confirm. Use with care!