     @badcache.push badthing
     @robot.brain.data.bad = @badcache
     badthing
-  deleteByNumber: (num) ->
-    index = @cache.map((n) -> n.num).indexOf(parseInt(num))
-    task = @cache.splice(index, 1)[0]
-    @robot.brain.data.tasks = @cache
-    task
+  delgood: ->
+    good = @goodcache = []
+    good 
+  delbad:
+    bad = @badcache = []
+    bad
 
 module.exports = (robot) ->
   goodbad = new GoodBad robot

    else 
      msg.send "Nothing bad happened."

  robot.respond /(task delete|delete task) #?(\d+)/i, (msg) ->
    taskNum = msg.match[2]
    task = tasks.deleteByNumber taskNum
    msg.send "Task deleted: ##{task.num} - #{task.task}"

    maxBadNum = if @badcache.length then Math.max.apply(Math,@badcache.map (n) -> n.num) else 0
    maxBadNum++
    maxBadNum  
  goodall: -> @goodcache
  badall: -> @badcache
  good: (goodString) ->
