# File lib/dragonfly/data_storage/file_data_store.rb, line 50 def destroy(relative_path) validate_uid!(relative_path) path = absolute(relative_path) FileUtils.rm path FileUtils.rm_f meta_data_path(path) FileUtils.rm_f deprecated_meta_data_path(path) purge_empty_directories(relative_path) rescue Errno::ENOENT => e raise DataNotFound, e.message end