適用於受管理的 Chrome 瀏覽器和 ChromeOS 裝置。
Chrome 89 以上版本。
管理員可以控管 Chrome 保留資料 (例如歷史記錄、Cookie 和密碼) 的時間。您可以在 Chrome 關閉時刪除特定資料,或在超過指定時間後刪除該資料。
事前準備
- 使用 SyncDisabled 政策關閉 Google Sync。如果是在平台層級設定刪除資料的政策,就必須在平台層級關閉 Sync。同理,如果是在使用者層級設定刪除資料的政策,則必須在使用者層級關閉 Sync。
- 您可以刪除的資料類型如下:
- browsing_history:刪除瀏覽記錄
- download_history:刪除下載記錄
- cookies_and_other_site_data:刪除 Cookie 和其他網站資料
- cached_images_and_files:刪除使用者裝置的快取圖片和檔案
- password_signin:刪除已儲存的密碼
- autofill:刪除儲存在瀏覽器中的自動填入資料
- site_settings:將網站設定重設為預設值
- hosted_app_data:刪除安裝在瀏覽器中的代管應用程式資料快取
查看政策
政策 | 說明與設定 |
---|---|
指定在 Chrome 關閉時要刪除的瀏覽資料類型。 這項政策的優先順序高於 AllowDeleteBrowserHistory。 |
|
設定 Chrome 的瀏覽資料生命週期。指定 Chrome 要在多久之後刪除特定類型的資料。 指定 time_to_live_in_hours:
有時候,刪除資料所需的時間可能會比您指定的時間更久一點。 |
在 Chrome 關閉時刪除資料
適用於所有裝置的已登入使用者,或是 Windows、Mac 或 Linux 上已註冊的瀏覽器。詳情請參閱「瞭解套用設定的時機」。
-
-
在管理控制台中,依序點選「選單」圖示 「裝置」「Chrome」「設定」。系統會預設開啟「使用者與瀏覽器設定」頁面。
如果您已註冊 Chrome 瀏覽器雲端管理服務,請依序點選「選單」圖示 「Chrome 瀏覽器」「設定」。
- 如要為所有使用者及已註冊的瀏覽器套用設定,請選取頂層機構單位;如果只要為部分使用者套用設定,請選取子機構單位。
- 前往「其他設定」。
- 如果是 ChromeOS 裝置:
- 按一下「Chrome 同步 (ChromeOS)」。
- 選取「停用 Chrome 同步」。
- 選取您要讓 Chrome 刪除的資料類型,然後勾選對應的方塊。請參閱上方的事前準備,查看可用的資料類型清單。
- 按一下「儲存」。
- 如果是 Windows、Mac 和 Linux 上的 Chrome 瀏覽器:
- 按一下「Chrome 同步和漫遊設定檔 (Chrome 瀏覽器 - 由雲端管理)」
- 選取「禁止同步」。
- 選取您要讓 Chrome 刪除的資料類型,然後勾選對應的方塊。請參閱上方的事前準備,查看可用的資料類型清單。
- 按一下「儲存」。
在指定的時間長度後刪除資料
範例
在 Chrome 關閉時刪除所有資料類型
管理控制台
適用於所有裝置的已登入使用者,或是 Windows、Mac 或 Linux 上已註冊的瀏覽器。詳情請參閱「瞭解套用設定的時機」。
-
-
在管理控制台中,依序點選「選單」圖示 「裝置」「Chrome」「設定」。系統會預設開啟「使用者與瀏覽器設定」頁面。
如果您已註冊 Chrome 瀏覽器雲端管理服務,請依序點選「選單」圖示 「Chrome 瀏覽器」「設定」。
- 如要為所有使用者及已註冊的瀏覽器套用設定,請選取頂層機構單位;如果只要為部分使用者套用設定,請選取子機構單位。
- 前往「其他設定」。
- 如果是 ChromeOS 裝置:
- 按一下「Chrome 同步 (ChromeOS)」。
- 選取「停用 Chrome 同步」。
- 勾選所有資料類型方塊。
- 按一下「儲存」。
- 如果是 Windows、Mac 和 Linux 上的 Chrome 瀏覽器:
- 按一下「Chrome 同步和漫遊設定檔 (Chrome 瀏覽器 - 由雲端管理)」
- 選取「禁止同步」。
- 勾選所有資料類型方塊。
- 按一下「儲存」。
Windows (群組原則)
["browsing_history","download_history","cookies_and_other_site_data","cached_images_and_files","password_signin","autofill","site_settings","hosted_app_data"]
Windows (登錄)
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\1 = browsing_history
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\2 = download_history
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\3 = cookies_and_other_site_data
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\4 = cached_images_and_files
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\5 = password_signin
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\6 = autofill
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\7 = site_settings
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\8 = hosted_app_data
Mac
<key>ClearBrowsingDataOnExitList</key>
<dict>
<array>
<string>browsing_history</string>
<string>download_history</string>
<string>cookies_and_other_site_data</string>
<string>cached_images_and_files</string>
<string>password_signin</string>
<string>autofill</string>
<string>site_settings</string>
<string>hosted_app_data</string>
</array>
</dict>
Linux
{
"ClearBrowsingDataOnExitList": ["browsing_history", "download_history", "cookies_and_other_site_data", "cached_images_and_files", "password_signin", "autofill", "site_settings", "hosted_app_data]
}
在 Chrome 關閉時刪除設定檔管理資料
使用者在使用 Chrome 時,瀏覽器會時常快取檔案和圖片,以加快日後瀏覽相同網站的速度。當使用者瀏覽大量網站時,裝置上儲存的快取量也會增加。如果使用者的裝置儲存空間有限或與他人共用,建議您採取相應措施以防止設定檔過大。您可以清除快取的圖片和檔案及代管應用程式的資料,以刪除大部分的資料,將設定檔控制在方便管理的大小。
管理控制台
適用於所有裝置的已登入使用者,或是 Windows、Mac 或 Linux 上已註冊的瀏覽器。詳情請參閱「瞭解套用設定的時機」。
-
-
在管理控制台中,依序點選「選單」圖示 「裝置」「Chrome」「設定」。系統會預設開啟「使用者與瀏覽器設定」頁面。
如果您已註冊 Chrome 瀏覽器雲端管理服務,請依序點選「選單」圖示 「Chrome 瀏覽器」「設定」。
- 如要為所有使用者及已註冊的瀏覽器套用設定,請選取頂層機構單位;如果只要為部分使用者套用設定,請選取子機構單位。
- 前往「其他設定」。
- 如果是 ChromeOS 裝置:
- 按一下「Chrome 同步 (ChromeOS)」。
- 選取「停用 Chrome 同步」。
- 勾選「快取的圖片和檔案」和「代管應用程式資料」方塊。
- 按一下「儲存」。
- 如果是 Windows、Mac 和 Linux 上的 Chrome 瀏覽器:
- 按一下「Chrome 同步和漫遊設定檔 (Chrome 瀏覽器 - 由雲端管理)」
- 選取「禁止同步」。
- 勾選「快取的圖片和檔案」和「hosted_app_data」方塊。
- 按一下「儲存」。
Windows (群組原則)
["cached_images_and_files","hosted_app_data"]
Windows (登錄)
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\1 = cached_images_and_files
Software\Policies\Google\Chrome\ClearBrowsingDataOnExitList\2 = hosted_app_data
Mac
<key>ClearBrowsingDataOnExitList</key>
<dict>
<array>
<string>cached_images_and_files</string>
<string>hosted_app_data</string>
</array>
</dict>
Linux
{
"ClearBrowsingDataOnExitList": ["cached_images_and_files", "hosted_app_data]
}
每 24 小時刪除一次瀏覽記錄,每 12 小時刪除一次密碼登入和自動填入資料
管理控制台
適用於所有裝置的已登入使用者,或是 Windows、Mac 或 Linux 上已註冊的瀏覽器。詳情請參閱「瞭解套用設定的時機」。
-
-
在管理控制台中,依序點選「選單」圖示 「裝置」「Chrome」「設定」。系統會預設開啟「使用者與瀏覽器設定」頁面。
如果您已註冊 Chrome 瀏覽器雲端管理服務,請依序點選「選單」圖示 「Chrome 瀏覽器」「設定」。
- 如要為所有使用者及已註冊的瀏覽器套用設定,請選取頂層機構單位;如果只要為部分使用者套用設定,請選取子機構單位。
- 前往「安全性」。
- 按一下「瀏覽資料生命週期」,然後設定下列項目:
- 將「瀏覽記錄存留時間 (小時)」設為 24。
- 將「密碼和其他登入資料存留時間 (小時)」設為 12。
- 將「自動填入表單資料存留時間 (小時)」設為 12。
- 按一下「儲存」。
Windows (群組原則)
[{"data_types":["browsing_history"],"time_to_live_in_hours":24},{"data_types":["password_signin","autofill"],"time_to_live_in_hours":12}]
Windows (登錄)
Software\Policies\Google\Chrome\BrowsingDataLifetime = [
{
"data_types": [
"browsing_history"
],
"time_to_live_in_hours": 24
},
{
"data_types": [
"password_signin",
"autofill"
],
"time_to_live_in_hours": 12
}
]
Mac
<key>BrowsingDataLifetime</key>
<array>
<dict>
<key>data_types</key>
<array>
<string>browsing_history</string>
</array>
<key>time_to_live_in_hours</key>
<integer>24</integer></dict>
<dict>
<key>data_types</key>
<array>
<string>password_signin</string>
<string>autofill</string>
</array>
<key>time_to_live_in_hours</key>
<integer>12</integer></dict>
</array>
Linux
BrowsingDataLifetime = [
{
"data_types": [
"browsing_history"
],
"time_to_live_in_hours": 24
},
{
"data_types": [
"password_signin",
"autofill"
],
"time_to_live_in_hours": 12
}
]
確認已成功套用政策
在您套用任何 Chrome 政策後,使用者必須重新啟動 Chrome,設定才會生效。您可以檢查使用者的裝置,確認政策是否正確套用。
- 在受管理的裝置上,瀏覽至 chrome://policy。
- 按一下 [重新載入政策]。
- 確認 ClearBrowsingDataOnExitList 和 BrowsingDataLifetime 政策的「狀態」已設為「確定」。
- 在 ClearBrowsingDataOnExitList 和 BrowsingDataLifetime 政策上,按一下 [顯示更多],確認值欄位中的值與您在政策中設定的值相同。
Google 與相關符號和標誌均為 Google LLC 的商標。所有其他公司名稱和產品名稱則為相關公司的商標。