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 フォルダー ID:"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 フォルダー ID を検索します。

    <?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. 上のセクションで説明した最初の 3 つの手順に従って、MeetingTranscriptCollection フォルダー ID を取得します。

  2. 次に、次のコード サンプルを使用して、threadId + DateTimeCreated に基づいてトランスクリプトを見つけます。

    <?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. クライアント アプリ ID "d3590ed6-52b3-4102-aeff-aad2292ab01c" でサインインします。

    [ 証明機関の検証] を選択して、テナント管理者がテナント内のユーザーのデータを制御できるようにします。

  2. [ 既知の名前でフォルダーを識別 する] を選択し、[ ルート ] を [フォルダー名] として選択し、SMTP アドレスを指定します。

  3. 文字起こしフォルダーを見つけて右クリックして削除します。 ウィンドウで詳細を表示するには、文字起こしフォルダーをダブルクリックします。

EWSEditor を使用して特定のトランスクリプトを削除する

特定の会議を識別するために、ユーザーは DateTimeCreated をチェックできます。 さらに、次の手順に従って、項目の threadId をチェックできます。

  1. 上部のツール バーで[ 表示 ]、[ 詳細プロパティ セットの構成 ]の順に選択します。

  2. [プロパティ セット エディター] ウィンドウで [ 拡張プロパティの追加] を選択し、[ OK] を選択します

    [拡張プロパティ定義] ウィンドウの [プロパティ識別子] で次の詳細を指定し、[ OK] を選択します

    • 名前または ID: RawJSON
    • プロパティ セット: 2842957e-8ed9-439b-99b5-f681924bd972
    • プロパティの種類: String
  3. EWSEditor に戻るすると、新しいプロパティがウィンドウの下部に生の JSON 文字列と共に表示されます。

  4. プロパティをダブルクリックして新しいウィンドウで開き、threadId をチェックします。

Microsoft Purview を使用して OneDrive と SharePoint のトランスクリプト コピーを削除する

OneDrive と SharePoint のトランスクリプトまたは OneDrive トランスクリプトからこれらのファイルを識別する 自動適用保持ラベル ポリシー を使用して、Teams 会議の記録と付随するトランスクリプトを削除できます。 詳細については、「 Microsoft 365 アイテムに保持ラベルを自動的に適用する」を参照してください。

開始に役立つ最も関連性の高いセクションを次に示します。

注意

Microsoft Purview で保持ラベル ポリシーを作成する場合、最小保持期間は 1 日です。つまり、記録と付随するトランスクリプトは 1 日後にのみ削除されます。