Skip to content

Add more flexible autocleanup strategy #4036

Closed

Description

@yanghua

Currently, lance only supports auto cleanup based on time interval. It would be better to have a more flexible cleanup strategy, e.g. commit-num based.

Activity

  1. self-assigned this
    on Jun 19, 2025
  2. removed their assignment
    on Sep 2, 2025
  3. wojiaodoubao commented on Sep 2, 2025

    @wojiaodoubao
    Contributor

    It would be good to have the cleanup strategies below:

    • Retain latest n versions.
    • Cleanup orphan files.
  4. majin1102 commented on Sep 8, 2025

    @majin1102
    Contributor
    • ain latest n versions.
    • Cleanup orphan files.

    Why cleanup orphan is a policy not an option?

    I think most cases if I want to cleanup orphan files, we still need a policy logic to know snapshot retention policies

  5. jackye1995 commented on Sep 10, 2025

    @jackye1995
    Contributor

    I just merged the PR. Are we good with closing this?

  6. Xuanwo commented on Jul 28, 2026

    @Xuanwo
    Member

    Closing as completed by #4614. Cleanup supports retain_versions through the Rust and Python APIs, with policy coverage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions