     ]
 
     success: (client, callback)->
+
+      # TODO Implement delete methods.
+      @update $set: status: "Terminating"
 
       JDomain  = require "./domain"
       JMachine = require "./computeproviders/machine"

  @getSelector = (selector, account)->
    selector ?= {}
    selector.originId = account.getId()
    return selector

  @some$ = permit 'list stacks',


      meta               : require 'bongo/bundles/meta'

      status             :
        type             : String
        enum             : ["Wrong type specified!", [

          # States which description ending with '...' means its an ongoing
          # proccess which you may get progress info about it
          #
          "Initial"         # Initial state
          "Terminating"     # Stack is getting destroyed...
          "Terminated"      # Stack is destroyed, not exists anymore
        ]]

        default          : -> "Initial"


  @getStack = (account, _id, callback)->

