code: func (s *ConfigService) DeleteTask(taskID string) (*Response, error) {
  	u := fmt.Sprintf("config/server/tasks/%s", taskID)
  	return s.client.DeleteRequest(u, nil)
  }
docs: // DeleteTask kills a task from the background work queue that the Gerrit daemon is currently performing, or will perform in the near future.
  // The caller must be a member of a group that is granted one of the following capabilities:
  //
  // * Kill Task
  // * Maintain Server
  // * Administrate Server
  //
  // End-users may see a task only if they can also see the project the task is associated with.
  // Tasks operating on other projects, or that do not have a specific project, are hidden.
  // Members of a group granted one of the following capabilities may view all tasks:
  //
  // * View Queue
  // * Maintain Server
  // * Administrate Server
  //
  // Gerrit API docs: https://gerrit-review.googlesource.com/Documentation/rest-api-config.html#delete-task