Computer Configuration > Administrative Templates > Microsoft Edge
Both
HKLM\Software\Policies\Microsoft\Edge
This policy controls how long specific types of browsing data are retained. If Sync is enabled, this policy has no effect. You can specify the following data types: 'browsing_history' 'download_history' 'cookies_and_other_site_data' 'cached_images_and_files' 'password_signin' 'autofill' 'site_settings' 'hosted_app_data' Microsoft Edge periodically deletes data of the selected types that is older than the value set by 'time_to_live_in_hours'. Expired data is removed 15 seconds after browser startup and every hour while the browser is running. Note: Deleting cookies using this policy does not sign the user out of their profile, the user stays signed in. Example value: [ { "data_types": [ "browsing_history" ], "time_to_live_in_hours": 24 }, { "data_types": [ "password_signin", "autofill" ], "time_to_live_in_hours": 12 } ]