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.
I have a working migration setup that uses xml files as the source. I use migrate_ui to import a zip file, unzip the files to a folder (the zip contains source xml and images) and register the migrations. This all works well but I would like to clean up the xml files when the corresponding migration is deregistered. How can I achieve this?
Is there a hook or something I can use? the best I came up with is a cronjob but it seems like a waste of resources.
Thanks
Comments