 
             callback: (data) =>
                 return if data is false
-                console.log "Decomissioning"
                 @decomission().done callback
 
 module.exports = ServerItem

    #
    promptRemove: (callback) =>
        vex.dialog.confirm
            message: @removeTemplate {@id, @type}

            buttons: [
                $.extend {}, vex.dialog.buttons.YES,


    destroy: =>
        state = @get('state')
        state = if state is 'DECOMISSIONED' then 'DECOMISSIONING' else state

        unless state?
            return new Error 'Need to know the state of a server item to remove it.'
            
            unless state in ['DECOMISSIONING', 'DEAD']
                return new Error "Can only remove dead & decommissioning slaves."
        $.ajax
            url: "#{ @url() }/#{ state.toLowerCase() }?user=#{ app.getUsername() }"
            type: "DELETE"

    # 
