parameters: (self, **kwargs)
docstring: Destroy a running virtual machine.
          :raises: subprocess.CalledProcessError
docstring_summary: Destroy a running virtual machine.
          :raises: subprocess.CalledProcessError
docstring_tokens: Destroy a running virtual machine . : raises : subprocess . CalledProcessError
function: def destroy(self, **kwargs):
          """Destroy a running virtual machine.
          :raises: subprocess.CalledProcessError
          """
          if self.is_running:
              logging.info(f"Destroying {self.vm_name}")
              try_run(
                  ["xl", "destroy", self.vm_name],
                  f"Failed to destroy VM {self.vm_name}",
                  **kwargs,
              )
function_tokens: def destroy ( self , * * kwargs ) : if self . is_running : logging . info ( f"Destroying {self.vm_name}" ) try_run ( [ "xl" , "destroy" , self . vm_name ] , f"Failed to destroy VM {self.vm_name}" , * * kwargs , )