text: // Generated by CoffeeScript 2.5.1
  // # `nikita.lxd.network.delete`
  
  // Delete an existing lxd network.
  
  // ## Options
  
  // * `network` (required, string)   
  //   The network name.
  
  // ## Callback parameters
  
  // * `err`   
  //   Error object if any.
  // * `status`   
  //   True if the network was deleted.
  
  // ## Example
  
  // ```js
  // require('nikita')
  // .lxd.network.delete({
  //   network: 'network0'
  // }, function(err, {status}){
  //   console.log( err ? err.message : 'Network deleted: ' + status);
  // })
  // ```
  
  // ## Source Code
  module.exports = function({options}) {
    this.log({
      message: "Entering lxd.network.delete",
      level: "DEBUG",
      module: "@nikitajs/lxd/lib/network/delete"
    });
    if (!options.network) {
      //Check args
      throw Error("Invalid Option: network is required");
    }
    //Execute
    return this.system.execute({
      cmd: `lxc network list --format csv | grep ${options.network} || exit 42
  ${['lxc', 'network', 'delete', options.network].join(' ')}`,
      code_skipped: 42
    });
  };
  