zepio/utils/clean-electron-store.js

16 lines
335 B
JavaScript

// @flow
/* eslint-disable */
import path from 'path';
import fs from 'fs';
import { app } from 'electron';
fs.unlink(path.join(app.getPath('appData'), 'zepio', 'config.json'), err => {
if (err) {
console.log("Couldn't remove config.json", err);
} else {
console.log('electron-store cleaned');
}
process.exit(0);
});