Possible Duplicate:
Clean Deleted Field from Database

Why the record about deleted field still exists in 'field_config_instance' only status 'deleted' = 1 ? But from 'field_config' records about field removed completely.

function mymodule_uninstall() {

  field_attach_delete_bundle('spproduct' , 'spproduct' );

I wont to remove field from all entity types wherevere it is used and from tables.

  • after cron run, records still in table althgough they have 'deleted' = 1 .
    – drupal2000
    Commented Jan 13, 2013 at 17:59
  • This is still a known issue drupal.org/node/1351506 Commented Oct 14, 2016 at 8:43

1 Answer 1


If you've got a fair amount of data, you'll need to allow cron to run a few times, or else do a larger batch purge


Will only delete 10 records.

$batch_size: The maximum number of field data records to purge before returning.

  • No, this is a test site and only a few post are.
    – drupal2000
    Commented Jan 14, 2013 at 8:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.