           )
         else if request.method == 'DELETE'
           db.presetsCollection.remove({'_id' : presetName}, (err, removedCount) ->
+            db.memcached.del('presets', (err, res) ->
+            )
             db.memcached.del('presets_hash', (err, res) ->
             )
             if err

          preset._id = presetName

          db.presetsCollection.save(preset, (err) ->
            db.memcached.del('presets_hash', (err, res) ->
            )
            if err

        else if action is '/retry'
          if request.method == 'POST'
            db.tasksCollection.update({_id : taskId}, {$unset : {fault : 1}, $inc : {retries : 1}, '$set' : {timestamp : new Date()}}, (err, count) ->
              # TODO need to invalidate presets hash for the device
              response.writeHead(200)
              response.end()
            )
