# File lib/chef_zero/data_store/memory_store_v2.rb, line 83 def delete(path) parent = _get(path[0,path.length-1]) if !parent.has_key?(path[-1]) raise DataNotFoundError.new(path) end if !parent[path[-1]].is_a?(String) raise "delete only works with strings: #{path}" end parent.delete(path[-1]) end