@@ -0,0 +1,1074 @@
+package com.google.sps.tasks;%0A%0Aimport java.io.IOException;%0Aimport java.util.concurrent.ExecutionException;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport com.google.sps.workspace.WorkspaceFactory;%0A%0A@WebServlet(%22/tasks/deleteWorkspace%22)%0Apublic class DeleteWorkspace extends HttpServlet %7B%0A  private WorkspaceFactory workspaceFactory;%0A%0A  @Override%0A  public void init() throws ServletException %7B%0A    workspaceFactory = WorkspaceFactory.getInstance();%0A  %7D%0A%0A  @Override%0A  protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException %7B%0A    String workspaceID = req.getReader().lines().reduce(%22%22, (accumulator, actual) -%3E accumulator + actual);%0A%0A    try %7B%0A      workspaceFactory.fromWorkspaceID(workspaceID).delete();%0A    %7D catch (InterruptedException %7C ExecutionException e) %7B%0A      resp.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);%0A    %7D%0A  %7D%0A%7D

Add a task to delete a workspace.