Skip to content

balena-io-modules/win-drive-clean

Repository files navigation

win-drive-clean

npm npm license npm downloads Travis CI status AppVeyor status Dependency status Gitter Chat

Remove a disks partition table on Windows

Install via npm

$ npm install --save win-drive-clean

Usage

const driveClean = require('win-drive-clean')

NOTE: As this is Windows only, calling driveClean() on other platforms will be a NOOP and always succeed.

driveClean('\\\\.\\PhysicalDrive5', (error) => {
  // ...
})