public boolean deleteBarcode(int barcodeLine) {
		Path tmpPath = null;
		try {
			// create tmp file
			tmpPath = Files.createFile(Paths.get(path.toString() + ".tmp"));

			// read from path, write to tmpPath
			try (BufferedReader reader = Files.newBufferedReader(path);
					BufferedWriter writer = Files.newBufferedWriter(tmpPath, options);) {

				String line = null;
				int lineNo = 0;
				while ((line = reader.readLine()) != null) {
					if (lineNo != barcodeLine) {
						writer.write(line);
						writer.newLine();
					}
					lineNo++;
				}
			}
			// replace original file with a new one
			Files.move(tmpPath, path, StandardCopyOption.REPLACE_EXISTING);
		} catch (IOException e) {
			System.err.format("IOException: %s%n", e);
			return false;
		}
		return true;
	}