With SQL Server's Query Store, how can cleanup avoid deleting "least expensive" queries?
You can also use STALE_QUERY_THRESHOLD_DAYS to clean purely based on time rather than the size-based cleanup parameter.