34G /root/.airbyte/abctl <@U04S8PLJWMT>
# ask-ai
s
34G /root/.airbyte/abctl @kapa.ai
k
The path
/root/.airbyte/abctl
is the default directory where Airbyte's
abctl
tool stores its configuration, Kubernetes cluster data, and other related files when running as root. If you are seeing that this directory is using 34GB of disk space, it likely contains persistent data from your Airbyte instance, including the local Kubernetes cluster and any data volumes managed by Airbyte. If you want to reclaim this space, you can remove the directory after uninstalling Airbyte. The recommended steps are: 1. Uninstall Airbyte and delete all data:
Copy code
abctl local uninstall --persisted
2. Remove the abctl directory:
Copy code
rm -rf ~/.airbyte/abctl
(If you are running as root, the path would be
/root/.airbyte/abctl
.) Warning: This will delete all Airbyte data and configuration stored in that directory. Make sure you have backups if needed. For more details, see the official documentation on uninstalling Airbyte and cleaning up abctl data: [Uninstall Airbyte](https://docs.airbyte.com/platform/next/deploying-airbyte/abctl#uninstall-airbyte)
s
delete only old and unwanted data.. don't want to uninstall @kapa.ai
k
A message from kapa.ai
To delete only old and unwanted data from Airbyte (without uninstalling), you should configure Airbyte's data and log retention settings. For abctl-based deployments, the main way to control how long data (especially Temporal history and logs) is kept is by setting the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable. How to do this: 1. Edit your
values.yaml
file (used by abctl) and add or update the following section:
Copy code
yaml    global:      env_vars:        TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7  # or any number of days you prefer
This will ensure that Temporal history data older than the specified number of days is automatically deleted, helping to control disk usage without removing your entire Airbyte installation or recent data. You can set this to a lower value (e.g., 1 or 3) if you want to be more aggressive about cleaning up old data. 2. Apply the changes by reinstalling/updating your Airbyte instance with abctl:
Copy code
abctl local install --values values.yaml
Note: There is currently no built-in, fine-grained manual cleanup command for selectively deleting only certain types of data from the
.airbyte/abctl
directory. The retention policy above is the recommended approach for ongoing management of disk usage in abctl-based Airbyte deployments. If you need to clean up more aggressively, you may need to manually inspect and remove old files, but do so with caution to avoid corrupting your Airbyte instance. For more details, see the discussion on configuring retention in abctl deployments: [Configure TEMPORAL_HISTORY_RETENTION_IN_DAYS in abctl deployment](https://github.com/airbytehq/airbyte/discussions/46355)
s
[root@ip airbyte-storage]# pwd /root/.airbyte/abctl/data/airbyte-minio-pv/airbyte-storage [root@ip airbyte-storage]# du -sh * 23G job-logging 1.2G workload @kapa.ai
k
A message from kapa.ai
Based on your directory listing, most of the space is used by
job-logging
(23G) and
workload
(1.2G) inside
/root/.airbyte/abctl/data/airbyte-minio-pv/airbyte-storage
. These folders are managed by MinIO and primarily store Airbyte job logs and workload outputs. How to clean up old and unwanted data without uninstalling Airbyte: 1. Manual Deletion: You can manually delete old log files from these directories. The recommended approach is to
kubectl exec
(or directly access, as you are doing) into the MinIO pod or the storage location and remove files inside the
job-logging
and
workload
folders. This is a common workaround and has been confirmed by users and support in the community: > "If you run on kubernetes, simply kubectl exec into the minio pod and delete the files and folders inside
/storage/airbyte-dev-logs/job-logging/workspace/
." [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101) > "I sshd into the minio pods and deleted all logs under the storage path. That worked for me" [S3 Minio Storage Full](https://discuss.airbyte.io/t/1857) > "You could potentially also delete the logs under: `/storage/airbyte-storage/workload/output`" [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812) 2. Automated Retention (for future): To prevent this from happening again, set the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable in your Airbyte deployment. This will automatically clean up old Temporal history and related logs after the specified number of days. For abctl/Helm, add to your `values.yaml`:
Copy code
yaml    env_vars:      TEMPORAL_HISTORY_RETENTION_IN_DAYS: 7  # or your preferred retention period
Then re-apply your configuration. This helps manage log growth over time, but does not retroactively delete existing files. [Reference](https://github.com/airbytehq/airbyte/issues/55812) Caution: Manually deleting files will remove historical logs and workload outputs, which may be useful for debugging or auditing. Only delete files you are sure you no longer need. Summary: You can safely delete old files from
job-logging
and
workload
to free up space, and set up retention policies to automate this in the future. There is no built-in Airbyte command for selective log cleanup; manual file deletion is the current method supported by the community and documentation.
s
sudo find /root/.airbyte/abctl/data/airbyte-minio-pv/airbyte-storage/workspace \ -maxdepth 1 -mindepth 1 -type d -mtime +5 -exec rm -rf {} + safe? @kapa.ai
k
A message from kapa.ai
Your command:
Copy code
bash sudo find /root/.airbyte/abctl/data/airbyte-minio-pv/airbyte-storage/workspace \   -maxdepth 1 -mindepth 1 -type d -mtime +5 -exec rm -rf {} +
What it does: This command will delete all directories (and their contents) directly under the
workspace
folder that have not been modified in the last 5 days. Is it safe? Based on the knowledge sources, it is common and supported to manually delete old log and workspace data from MinIO storage to free up space, especially when disk usage becomes an issue. Users and support have confirmed that deleting old logs and workspace data from MinIO (including the
workspace
directory) is a valid way to reclaim space, and this does not impact the running Airbyte instance as long as you are only deleting old/unneeded data. For example: - "If you run on kubernetes, simply kubectl exec into the minio pod and delete the files and folders inside
/storage/airbyte-dev-logs/job-logging/workspace/
." [How to clean up airbyte-minio and what's stored in minio?](https://discuss.airbyte.io/t/3101) - "I sshd into the minio pods and deleted all logs under the storage path. That worked for me" [S3 Minio Storage Full](https://discuss.airbyte.io/t/1857) - "You could potentially also delete the logs under: `/storage/airbyte-storage/workload/output`" [All sync jobs hanging indefinitely](https://github.com/airbytehq/airbyte/issues/55812) Cautions: - This will permanently delete all data in those directories. Make sure you do not need the logs or outputs for debugging or auditing. - Only delete data older than your required retention period. - There is no built-in Airbyte recovery for deleted logs or workspace data. Summary: Yes, your command is in line with community-supported methods for cleaning up old Airbyte workspace data in MinIO storage. Just ensure you are comfortable with losing any data older than 5 days in that directory, as this action is irreversible. If you want to automate this in the future, consider setting the
TEMPORAL_HISTORY_RETENTION_IN_DAYS
environment variable as described in the sources above.