Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
From tim.plunkett:
A cool feature might be an opt-in flag like --prune/--destroy/--remove that would kill the old code if we REALLY want the old stuff gone.
Agreed!
Comments
Comment #1
webchickThis keeps getting brought up when I show it to people, so setting as a critical task.
Comment #2
phenaproximaI've added a basic implementation of this in commit 9d6073c. The flag is --clean, and a plugin must implement CleanerInterface in order for the clean() method, which deletes old crap, to be called.
Comment #3
webchickCool, it works! Only on block_info for now, but others could be added.