Field is not removed from 'field_config_instance' 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' );
  field_delete_field('field_spproduct_image');
  field_purge_batch(10);
}


I wont to remove field from all entity types wherevere it is used and from tables.
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

field_purge_batch(10)

Will only delete 10 records.


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