     #
     promptRemove: (callback) =>
         vex.dialog.confirm
-            message: @removeTemplate {@id, @type}
+            message: @removeTemplates[@get 'state'] {@id, @type}
 
             buttons: [
                 $.extend {}, vex.dialog.buttons.YES,


    destroy: =>
        state = @get('state')
        unless state?
            return new Error 'Need to know the state of a server item to remove it.'
            
            unless state in ['DECOMISSIONED', 'DEAD']
                return new Error "Can't remove an active server item. Decommission first." 

        console.log "#{ @url() }/#{@get('state').toLowerCase()}?user=#{app.getUsername()}"
        return
        $.ajax
            url: "#{ @url() }/#{@get('state').toLowerCase()}?user=#{app.getUsername()}"
            type: "DELETE"

    # 

# Not used by itself. Subclassed by Rack & Slave
class ServerItem extends Model

    removeTemplates:
        DEAD: require '../views/templates/vex/serverRemoveDead'
        DECOMISSIONING: require '../views/templates/vex/serverRemoveDecomissioned'
        DECOMISSIONED: require '../views/templates/vex/serverRemoveDecomissioned'
    decomissionTemplate: require '../views/templates/vex/serverDecomission'

    parse: (item) =>
