How can you enable clearing browsing data automatically when closing your Google Chrome windows?
The feature you are looking for exists in the Google Chrome web browser; however, it is hidden within the Chrome menus. Here are the steps to enable this feature in Chrome version 119 and higher:
1. Open Chrome Settings from the 3 dots icon, and then choose Settings

2. Click on Privacy and Security

3. Navigate to Site Settings

4. Select Additional Content Settings from the menu

5. Click on On-device Site Data
6. Select now the radio button Delete data sites that have been saved to your device when you close all windows

Or open this direct link in your Google Chrome web browser to enable this feature:
chrome://settings/content/siteData