You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
randikathryn edited this page Feb 16, 2014
·
1 revision
[Insert description of step/item here]
Steps
View the object in a web browser using hydraDAM - the last section of the show page URL is the object's PID.
Open a shell session (ssh or directly on the server)
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 >
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")
Delete the file from fedora and solr: f.destroy
Close the rails console and return to your shell prompt: exit