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

    var params = [ 'destroy' ];
    if (opts.recursive) {
        params.push('-r');
    }
    params.push(opts.name);

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

    var params = [ 'destroy' ];
    if (opts.recursive) {
        params.push('-r');
    }
    params.push(opts.name);

    zfs(params, cb);
}
/*

Remove a dataset from the ZFS filesystem

PARAMS:
opts: {
recursive: Boolean //to make the destroy recursive (add the -r command to the zfs command) (optional)
name: string //The name of the dataset to destroy (must exist)
}