how to clean hosting history in firebase code example
Example: firebase hosting delete older versions
From your project's Hosting page, locate the Release History table for your site:
If you have only one Hosting site, the Release History table is on your Dashboard page.
If you have more than one Hosting site, click View for the desired site, then locate the Release History table on the site's Dashboard page.
Click the three-dot overflow menu, then select Release storage settings.
Enter the number of releases that you'd like to keep, then click Save.