Can I delete leftover field_deleted_* tables?

by Kevin   Last Updated January 03, 2018 21:07 PM

I have a lot of field_deleted_* tables in the database and neither drush cr or running cron is removing them. Is it okay to just remove them from the database? How can I tell Drupal to remove them otherwise?

enter image description here

Tags : 8 fields database

Answers 1

No, this is probably not a good idea, because there are more things that need to be removed, not only the database tables.

The deleted fields are purged by cron, but only 50 rows per run. If you want to accelerate the process, run cron more often or increase the batch size in field.settings.yml:

purge_batch_size: 50

Instead of cron you can run field_purge_batch() from the command line, then with a higher batch limit, for example 1000 or how many rows you have and can delete without hitting a time limit:

drush ev "field_purge_batch(1000)"
January 03, 2018 21:03 PM

Related Questions

How do I change a field type?

Updated July 31, 2016 08:03 AM

How to change the length of field settings?

Updated August 19, 2016 09:03 AM

Change text field editor in database after upgrade

Updated March 17, 2017 10:07 AM