#NEWLINE# def destroy_node( self , node , ex_convert_last_backup = 0 , ex_destroy_all_backups = 0 ) : #NEWLINE# #INDENT# "\n        Delete a VS\n\n        :param node: OnApp node\n        :type  node: :class: `OnAppNode`\n\n        :param convert_last_backup: set 1 to convert the last VS's backup to\n                                    template, otherwise set 0\n        :type  convert_last_backup: ``int``\n\n        :param destroy_all_backups: set 1 to destroy all existing backups of\n                                    this VS, otherwise set 0\n        :type  destroy_all_backups: ``int``\n        " #NEWLINE# server_params = { #NEWLINE# #INDENT# 'convert_last_backup' : ex_convert_last_backup , #NEWLINE# 'destroy_all_backups' : ex_destroy_all_backups , #NEWLINE# #UNINDENT# } #NEWLINE# action = '/virtual_machines/{identifier}.json' . format ( identifier = self . id ) #NEWLINE# self . connection . request ( action , params = server_params , method = 'DELETE' ) #NEWLINE# return True