deleteEpersonGroup2WorkspaceItem();
    public void deleteAll() throws SQLException, AuthorizeException,            IOException    {        /*         * Authorisation is a special case. The submitter won't have REMOVE         * permission on the collection, so our policy is this: Only the         * original submitter or an administrator can delete a workspace item.         */        if (!AuthorizeManager.isAdmin(ourContext)                && ((ourContext.getCurrentUser() == null) || (ourContext                        .getCurrentUser().getID() != item.getSubmitter()                        .getID())))        {            // Not an admit, not the submitter            throw new AuthorizeException("Must be an administrator or the "                    + "original submitter to delete a workspace item");        }        HistoryManager.saveHistory(ourContext, this, HistoryManager.REMOVE,                ourContext.getCurrentUser(), ourContext.getExtraLogInfo());        log.info(LogManager.getHeader(ourContext, "delete_workspace_item",                "workspace_item_id=" + getID() + "item_id=" + item.getID()                        + "collection_id=" + collection.getID()));        //deleteSubmitPermissions();        // Remove from cache        ourContext.removeCached(this, getID());        // Need to delete the workspaceitem row first since it refers        // to item ID        DatabaseManager.delete(ourContext, wiRow);        // Delete item        item.delete();    }