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.


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.

| improve this answer | |
  • 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.