/*
 * Copyright (C) 2017 Steven Soloff
 *
 * This software is licensed under the terms of the GNU Affero General Public
 * License version 3 or later (https://www.gnu.org/licenses/).
 */

import config from './config'
import del from 'del'
import fs from 'fs'
import kill from 'tree-kill'

const serverPid = fs.readFileSync(config.paths.serverPid, {
  encoding: config.encodings.serverPid
})
del(config.paths.serverPid)

kill(serverPid)

@@ -215,30 +215,8 @@
 ig'%0A
-import del from 'del'%0A
 impo
@@ -367,11 +367,21 @@
 %0A%7D)%0A
-del
+fs.unlinkSync
 (con

Use fs.unlinkSync() to delete files