Documentationcurrent version
Help us improve the docs by fixing typos and proposing enhancements.

Nikita

Action "lxc.network.delete"

Delete an existing lxd network.

Output

  • $status
    True if the network was deleted.

Example

const {$status} = await nikita.lxc.network.delete({
  network: 'network0'
})
console.info(`Network was deleted: ${$status}`)

Schema definitions

definitions =
  config:
    type: 'object'
    properties:
      'network':
        type: 'string'
        description: '''
        Name of the network to delete.
        '''
    required: ['network']

Handler

handler = ({config}) ->
  await @lxc.query
    path: "/1.0/networks/#{config.network}"
    request: 'DELETE'
    format: 'string'
    code: [0, 1]

Exports

module.exports =
  handler: handler
  metadata:
    definitions: definitions
Edit on GitHub
Navigate
About

Nikita is an open source project hosted on GitHub and developed by Adaltas.