fs.unlink has no param 'type'