# Removing a Record From an Index

**URL:** <https://www.ruby-forum.com/t/removing-a-record-from-an-index/167326>\
**Category:** Ferret\
**Created:** [May 6, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/removing-a-record-from-an-index/167326 "2009-05-06T19:14:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dur\_dev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f475e1/32.png) [@dur\_dev](https://www.ruby-forum.com/u/dur_dev)\
**Post date:** [May 6, 2009, 7:14pm UTC](https://www.ruby-forum.com/t/removing-a-record-from-an-index/167326/1 "2009-05-06T19:14:25Z")

</div>

How do you remove a record from an index? When a record enters a state  
of “inactive”, we want to remove the record from the index. I have tried  
calling self.ferret\_destroy but this destroys the entire index on the  
Mongrel on which self.ferret\_destroy is called (this Mongrel returns 0  
records while the other 3 Mongrels continue to return records). Is there  
another method I should be calling?

I am using AAF 0.4.3, the plugin, which includes the acts\_as\_ferret :if  
=\> Proc.new { … } option.
