code: function deleteAllOperations(req, res) {
  	taskStore.getTasksForUser(req.user.username, function(err, tasks) {
  		if (err) {
  			return writeError(500, res, err.toString());
  		}
  		var locations = [];
  		var doneCount = 0;
  		var done = function() {
  			if (!tasks.length || ++doneCount === tasks.length) {
  				writeResponse(200, res, null, locations);
  			}
  		};
  		if (!tasks.length) {
  			done();
  			return;
  		}
  		tasks.forEach(function(task) {
  			if (task.result || task.Result) {
  				// task in single user case doesn't have Location, it has keep instead
  				taskStore.deleteTask(getTaskMeta(req, (task.Location && task.Location.substring(req.baseUrl.length)) || task.keep, task.id), done); /* task is completed */
  			} else {
  				locations.push(toJSON(task, true).Location);
  				done();
  			}
  		});
  	});
  }
docs: Deletes all completed operations that the user sending the request had created.