Migrate Orphans Purger
This module provides Drush commands to clean up orphaned content from previous migrations. It identifies and either deletes or disables content in your Drupal site that no longer exists in the original source data.
When using migrate to import data from external data sources, we often have the issue, that the external data source deletes records we previously imported. In our database remain "orphans" and our migrate_map tables are full of orphaned entries.
This modules comes with a handy drush command to remove orphans from a specific migration by comparing the migrate_map table and the external data source.
You have two options:
- Delete orphaned entities
- Disable orphaned entities
Usage:
drush migrate:orphans-purge <migration-name>
drush migrate:orphans-disable <migration-name>
Depends on
Dependencies of the latest stable release
- Migrate Plus
- Migrate Tools >=6.0.4
- migrate Drupal core
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.