 
   JMachine       = require './machine'
   JWorkspace     = require '../workspace'
-  JStackTemplate = require './stacktemplate'
 
   @COUNTER_TYPE  =
     stacks       : 'member_stacks'


    return callback null  unless plan

    JStackTemplate.one$ client, { _id: stackTemplateId }, (err, data) =>

      return callback err  if err


      # Remove all stack templates in the group
      (next) ->
        JStackTemplate = require './stacktemplate'
        JStackTemplate.remove {
          group: group.slug
        }, skip 'JStackTemplate', next
