# File lib/tramp/base.rb, line 52 def destroy(callback = nil, &block) callback ||= block relation.delete do status = Status.new(self, true) after_destroy_callbacks status callback.arity == 1 ? callback.call(status) : callback.call if callback end end