             @unuseStackTemplate callback
 
 
-  delete: (callback) ->
-
-    if @baseStackId
+  delete: (callback, force = no) ->
+
+    if @baseStackId and not force
       return callback new KodingError \
         'Stacks generated from templates can only be destroyed by Kloud.'
 

  destroy$: permit

    advanced: [
      { permission: 'delete own stack', validateWith: Validators.own }
    ]


      @destroy => @remove callback


  forceDelete: permit

    advanced: [
      { permission: 'delete stack' }
      { permission: 'delete stack', superadmin: yes }
    ]

    success: (client, callback) ->

      @unuseStackTemplate (err) =>
        return callback err  if err
        @delete callback, force = yes


  delete$: permit

    # TODO Add password check for stack delete
