Skip to content

Operations Guide: Deleting an Object from Fedora and Solr

randikathryn edited this page Feb 16, 2014 · 1 revision

[Insert description of step/item here]

Steps

  1. View the object in a web browser using hydraDAM - the last section of the show page URL is the object's PID.
  2. Open a shell session (ssh or directly on the server)
  3. Open a rails console: rails console production you will see your ruby version and environment loaded, then you will get a rails prompt:
    Loading production environment (Rails 4.0.2) 2.0.0-p353 :001 >
  4. Search for the object and assign it a variable - the default file type is GenericFile and the default namespace is sufia - if the PID is p5547s23c and you used the default setup, search with:
    f = GenericFile.find("sufia:p5547s23c")
  5. Delete the file from fedora and solr: f.destroy
  6. Close the rails console and return to your shell prompt: exit
Clone this wiki locally