docs: protected void internalRemoveFolder(CmsDbContext dbc, CmsProject currentProject, CmsResource resource)
      throws CmsDataAccessException {
  
          PreparedStatement stmt = null;
          Connection conn = null;
  
          try {
              conn = m_sqlManager.getConnection(dbc);
  
              // delete the structure record
              stmt = m_sqlManager.getPreparedStatement(conn, currentProject, "C_STRUCTURE_DELETE_BY_STRUCTUREID");
              stmt.setString(1, resource.getStructureId().toString());
              stmt.executeUpdate();
  
              m_sqlManager.closeAll(dbc, null, stmt, null);
  
              // delete the resource record
              stmt = m_sqlManager.getPreparedStatement(conn, currentProject, "C_RESOURCES_DELETE_BY_RESOURCEID");
              stmt.setString(1, resource.getResourceId().toString());
              stmt.executeUpdate();
          } catch (SQLException e) {
              throw new CmsDbSqlException(
                  Messages.get().container(Messages.ERR_GENERIC_SQL_1, CmsDbSqlException.getErrorQuery(stmt)),
                  e);
          } finally {
              m_sqlManager.closeAll(dbc, conn, stmt, null);
          }
      }