Hi Dave,
Yes, because Fedora is not really aware of what ActiveFedora is putting in Solr, it does not delete anything from there when you delete an object through the Fedora admin UI. Anytime we want to delete something we have done it through ActiveFedora instead. If you want to just delete one or two items a quick way would be to do it through the rails console. You just create the object and then call delete on itself:
- cd to your app workspace
- script/console
- require "rubygems"
- require "active-fedora"
- ActiveFedora.init
- obj = ActiveFedora::Base.load_instance("changeme:1")
- obj.delete
Just replace "ActiveFedora::Base" with your model class if you have extended it and replace "changeme:1" with your pid and you should be set. Now because you already deleted something from Fedora and not Solr you will probably need to recreate it first in the Fedora Admin console in order for ActiveFedora to load the object. Then, you should be able call delete like above and it will be removed from both Solr and Fedora.
Alternatively, if you have a lot of objects to do you could build a rake task that takes inputs etc. We also have an ingest controller that sits within our application to take ingest/remove requests with REST calls.
Thanks,
Rick
----------------------------------------------------------
Rick Johnson
Unit Manager, Digital Library Applications and Local Programming Unit
Library Information Systems
University of Notre Dame
Michiana Academic Library Consortium
Notre Dame, IN USA 46556
http://www.library.nd.edu574-631-1086------------------------------------------------------------