Share via


刪除 Exchange Online和 OneDrive 文字記錄檔案

適用於: ✔️會議✔️網路研討會✔️大會堂

在 Microsoft Teams 中,目前會議文字記錄檔案的儲存位置稱為 Exchange Online 字幕或字幕字幕。 Exchange Online 文字記錄將會在 2024 年取代。 新的儲存位置將會是 OneDrive。

本文說明如何在 Exchange Online 和 OneDrive 中刪除會議文字記錄檔案。

使用 XML 刪除 Exchange Online 文字記錄檔案

您必須使用EWS API 刪除儲存在 Exchange Online 上的文字記錄檔案。 如需 API 指示的詳細資訊,請參閱 Exchange 中的 EWS 作業

轉譯檔案的結構為: Root\ApplicationDataRoot\93c8660e-1330-4e40-8fda-fd27f9eafe10\MeetingTranscriptCollection\

  1. 使用下列程式代碼範例尋找 ParentFolderId (ApplicationDataRoot) :

    <?xml version="1.0" encoding="utf-8"?>    
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
         <soap:Header> 
           <t:RequestServerVersion Version="Exchange2010_SP2" /> 
         </soap:Header> 
         <soap:Body> 
           <m:FindFolder Traversal="Shallow"> 
             <m:FolderShape> 
               <t:BaseShape>IdOnly</t:BaseShape> 
               <t:AdditionalProperties> 
                 <t:FieldURI FieldURI="folder:DisplayName" /> 
               </t:AdditionalProperties> 
             </m:FolderShape> 
             <m:IndexedPageFolderView MaxEntriesReturned="50" Offset="0" BasePoint="Beginning" /> 
             <m:Restriction> 
                 <t:IsEqualTo> 
                   <t:FieldURI FieldURI="folder:DisplayName" /> 
                   <t:FieldURIOrConstant> 
                     <t:Constant Value="ApplicationDataRoot"/> 
                   </t:FieldURIOrConstant> 
                 </t:IsEqualTo> 
             </m:Restriction> 
             <m:ParentFolderIds> 
               <t:DistinguishedFolderId Id="root" /> 
             </m:ParentFolderIds> 
           </m:FindFolder> 
         </soap:Body> 
       </soap:Envelope> 
    
  2. 尋找 MeetingIntelligenceApp 資料夾識別符:「93c8660e-1330-4e40-8fda-fd27f9eafe10」,如下列程式代碼範例所示:

    <?xml version="1.0" encoding="utf-8"?> 
       <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
         <soap:Header> 
           <t:RequestServerVersion Version="Exchange2010_SP2" /> 
         </soap:Header> 
         <soap:Body> 
           <m:FindFolder Traversal="Shallow"> 
             <m:FolderShape> 
               <t:BaseShape>AllProperties</t:BaseShape> 
               <t:AdditionalProperties> 
                 <t:FieldURI FieldURI="folder:DisplayName" />
            </t:AdditionalProperties> 
              </m:FolderShape> 
              <m:IndexedPageFolderView MaxEntriesReturned="50" Offset="0" BasePoint="Beginning" /> 
             <m:Restriction> 
               <t:IsEqualTo> 
                 <t:FieldURI FieldURI="folder:DisplayName" /> 
                 <t:FieldURIOrConstant> 
                   <t:Constant Value="93c8660e-1330-4e40-8fda-fd27f9eafe10"/> 
                 </t:FieldURIOrConstant> 
               </t:IsEqualTo> 
           </m:Restriction> 
           <m:ParentFolderIds> 
     <t:FolderId Id="AQMkADRhOWIyODBmLTQzMDEtNDc5Yi1iNTY2AC0zYWM4YjNhMjhkNWMALgAAA784AonxS+lBuntvnROGrHMBACDUFKCn6g9ItmL6JTlNKDAAAAIBIgAAAA==" ChangeKey="AQAAAA==" /> 
           </m:ParentFolderIds> 
         </m:FindFolder> 
       </soap:Body> 
     </soap:Envelope> 
    
  3. 使用下列程式代碼範例尋找 MeetingTranscriptCollection 資料夾識別碼:

    <?xml version="1.0" encoding="utf-8"?> 
     <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
       <soap:Header> 
         <t:RequestServerVersion Version="Exchange2010_SP2" /> 
       </soap:Header> 
       <soap:Body> 
         <m:FindFolder Traversal="Shallow"> 
           <m:FolderShape> 
             <t:BaseShape>AllProperties</t:BaseShape> 
             <t:AdditionalProperties> 
               <t:FieldURI FieldURI="folder:DisplayName" /> 
             </t:AdditionalProperties> 
           </m:FolderShape> 
           <m:IndexedPageFolderView MaxEntriesReturned="50" Offset="0" BasePoint="Beginning" /> 
           <m:Restriction> 
               <t:IsEqualTo> 
                 <t:FieldURI FieldURI="folder:DisplayName" /> 
                 <t:FieldURIOrConstant> 
                   <t:Constant Value="MeetingTranscriptCollection"/> 
                 </t:FieldURIOrConstant> 
               </t:IsEqualTo> 
           </m:Restriction> 
           <m:ParentFolderIds> 
     <t:FolderId Id="AAMkADRhOWIyODBmLTQzMDEtNDc5Yi1iNTY2LTNhYzhiM2EyOGQ1YwAuAAAAAAC/OAKJ8UvpQbp7b50ThqxzAQAg1BSgp+oPSLZi+iU5TSgwAAF1f4tpAAA=" ChangeKey="AQAAABYAAAAg1BSgp+oPSLZi+iU5TSgwAATlHZy8"/> 
           </m:ParentFolderIds> 
         </m:FindFolder> 
       </soap:Body> 
     </soap:Envelope> 
    
  4. 刪除 MeetingTranscriptCollection 資料夾以刪除使用者的所有轉譯檔案,如下列程式代碼範例所示:

    <?xml version="1.0" encoding="utf-8"?> 
     <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
       <soap:Header> 
         <t:RequestServerVersion Version="Exchange2016" /> 
       </soap:Header> 
       <soap:Body> 
         <m:DeleteFolder DeleteType="HardDelete"> 
           <m:FolderIds> 
             <t:FolderId Id="AAMkAGUzNDY1MjY4LTRmNjItNGQ1Ni05YzE4LTE1NDlmYzFiZmFmYgAuAAAAAAC+Ct50+goBS4yeyX/xvq9QAQDhHjGubgXIQZeXAlxCHvQOAACwZS4iAAA=" ChangeKey="AQAAABYAAADhHjGubgXIQZeXAlxCHvQOAACwOP/U" /> 
           </m:FolderIds> 
         </m:DeleteFolder> 
       </soap:Body> 
     </soap:Envelope> 
    

使用 XML 刪除特定的文字記錄檔案

  1. 依照上述章節中提及的前三個步驟取得 MeetingTranscriptCollection 資料夾標識碼。

  2. 現在,使用下列程式代碼範例,尋找以 threadId + DateTime 為基礎的文字記錄:

    <?xml version="1.0" encoding="utf-8"?> 
     <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
       <soap:Header> 
         <t:RequestServerVersion Version="Exchange2010_SP2" /> 
       </soap:Header> 
       <soap:Body> 
         <m:FindItem Traversal="Shallow"> 
           <m:ItemShape> 
             <t:BaseShape>AllProperties</t:BaseShape> 
             <t:AdditionalProperties> 
               <t:ExtendedFieldURI PropertySetId="2842957e-8ed9-439b-99b5-f681924bd972" PropertyName="RawJSON" PropertyType="String" /> 
             </t:AdditionalProperties> 
           </m:ItemShape> 
           <m:Restriction> 
     <t:And> 
              <t:Contains ContainmentMode="Substring" ContainmentComparison="IgnoreCase"> 
               <t:ExtendedFieldURI PropertySetId="2842957e-8ed9-439b-99b5-f681924bd972" PropertyName="RawJSON" PropertyType="String" /> 
                <t:Constant Value="19:meeting_ZWRmMGVkMDctNTI0NS00NmQ4LWJjMDgtMDA5MjVhMzE0ZjJl@thread.v2"/> 
              </t:Contains> 
             <t:GreaterThanOrEqual> 
               <t:FieldURI FieldURI="item:DateTimeReceived" /> 
               <t:FieldURIOrConstant> 
                 <t:Constant Value="2022-12-28T00:00:00Z" /> 
               </t:FieldURIOrConstant> 
             </t:GreaterThanOrEqual> 
     </t:And> 
           </m:Restriction> 
           <m:ParentFolderIds> 
                     <t:FolderId Id="AAMkAGUzNDY1MjY4LTRmNjItNGQ1Ni05YzE4LTE1NDlmYzFiZmFmYgAuAAAAAAC+Ct50+goBS4yeyX/xvq9QAQDhHjGubgXIQZeXAlxCHvQOAAEP+YkQAAA=" /> 
           </m:ParentFolderIds> 
         </m:FindItem> 
       </soap:Body> 
     </soap:Envelope> 
    
  3. 使用下列範例程式代碼刪除文字記錄:

    <?xml version="1.0" encoding="utf-8"?> 
     <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> 
       <soap:Header> 
         <t:RequestServerVersion Version="Exchange2010_SP2" /> 
       </soap:Header> 
       <soap:Body> 
         <m:DeleteItem DeleteType="HardDelete"> 
           <m:ItemIds> 
             <t:ItemId Id="AAMkAGUzNDY1MjY4LTRmNjItNGQ1Ni05YzE4LTE1NDlmYzFiZmFmYgBGAAAAAAC+Ct50+goBS4yeyX/xvq9QBwDhHjGubgXIQZeXAlxCHvQOAACwZS4iAADhHjGubgXIQZeXAlxCHvQOAAEP+bwSAAA=" /> 
           </m:ItemIds> 
         </m:DeleteItem> 
       </soap:Body> 
     </soap:Envelope> 
    

使用EWSEditor 刪除文字記錄

您也可以使用 EWSEditor 開放原始碼 工具,依照下列步驟刪除會議文字記錄:

  1. 使用用戶端應用程式標識碼登入:「d3590ed6-52b3-4102-aeff-aad2292ab01c」。

    取 [驗證授權單位 ],讓租用戶系統管理員控制租用戶中用戶的數據。

  2. 取 [依已知名稱識別資料夾] ,然後選取 [根 作為資料夾名稱] 並提供 SMTP 位址。

  3. 尋找轉譯資料夾,然後以滑鼠右鍵按兩下以刪除。 若要在窗格中檢視更多詳細數據,請按兩下轉譯資料夾。

使用EWSEditor 刪除特定文字記錄

若要識別特定會議,用戶可以檢查 DateTimeCreated。 此外,他們可以依照下列步驟檢查專案的 ThreadId:

  1. 取 [檢視 ],然後在上方工具列中選取 [設定 詳細數據屬性集... ]。

  2. 選取 [屬性集編輯器] 窗格中的 [ 新增延伸屬性 ],然後選取 [ 確定]

    在 [延伸屬性定義] 窗格的 [屬性標識符] 底下提供下列詳細數據,然後選取 [確定]

    • 名稱或標識碼:RawJSON
    • 屬性集:2842957e-8ed9-439b-99b5-f681924bd972
    • 屬性類型:字串
  3. 返回 至 EWSEditor,新屬性會在窗格下半部顯示其 raw JSON 字串。

  4. 按兩下屬性以在新視窗中開啟它,並檢查threadId。

透過 Microsoft Purview 刪除 OneDrive 和 SharePoint 中的文字記錄複本

您可以選擇刪除 Teams 會議錄製及其隨附的文字記錄,方法是使用 自動套用保留卷標原則 ,以識別 OneDrive 和 SharePoint 文字記錄或 OneDrive 文字記錄中的這些檔案。 如需詳細資訊,請參閱 自動將保留標籤套用至 Microsoft 365 專案

以下是可協助您開始使用的最相關章節:

備註

在 Microsoft Purview 中建立保留標籤原則時,最小保留期間為 1 天,這表示錄製和隨附的文字記錄只會在 1 天后刪除。