1

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.

marked as duplicate by Letharion, Chapabu, googletorp Jan 21 '13 at 14:09

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

0

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.

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

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