lib/zpool.js
function destroy(opts, cb) {
    "use strict";

    var params = [ 'destroy', '-f' ];

    params.push(opts.name);

    zpool(params, cb);
}
function destroy(opts, cb) {
    "use strict";

    var params = [ 'destroy', '-f' ];

    params.push(opts.name);

    zpool(params, cb);
}
/*

Destroys the given pool, freeing up any devices for other use.
This command tries to unmount any active datasets before destroying the pool.

PARAMS:
opts: {
name: String //Must exist, the name of the pool to destroy
}