workspaceItem.deleteWrapper();
workspaceItem.deleteAll();
    private void processRemoveItem(Context context,        HttpServletRequest request,        HttpServletResponse response)        throws ServletException, IOException, SQLException, AuthorizeException    {        String buttonPressed = UIUtil.getSubmitButton(request, "submit_cancel");        // Get workspace item        WorkspaceItem workspaceItem;        try        {            int wsID = Integer.parseInt(request.getParameter("workspace_id"));            workspaceItem = WorkspaceItem.find(context, wsID);        }        catch (NumberFormatException nfe)        {            workspaceItem = null;        }        if (workspaceItem == null)        {            log.warn(LogManager.getHeader(context,                "integrity_error",                UIUtil.getRequestLogInfo(request)));            JSPManager.showIntegrityError(request, response);            return;        }                // We have a workspace item        if (buttonPressed.equals("submit_delete"))        {            // User has clicked on "delete"            log.info(LogManager.getHeader(context,                "remove_submission",                "workspace_item_id=" + workspaceItem.getID() +                ",item_id=" + workspaceItem.getItem().getID()));            workspaceItem.deleteWrapper();            showMainPage(context, request, response);            context.complete();        }        else        {            // User has cancelled.  Back to main page.            showMainPage(context, request, response);        }    }