Method: Rubydora::DigitalObject#delete
- Defined in:
- lib/rubydora/digital_object.rb
#delete ⇒ Rubydora::DigitalObject
Purge the object from Fedora
216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/rubydora/digital_object.rb', line 216 def delete check_if_read_only my_pid = pid run_callbacks :destroy do @datastreams = nil @profile = nil @pid = nil nil end repository.purge_object(:pid => my_pid) ##This can have a meaningful exception, don't put it in the callback end |