Based on the documentation https://www.home-assistant.io/integrations/recorder:
" You can also use the include list to define the domains/entities to record, and exclude some of those within the exclude list."
I have made such entry in my configuration file:
Else wait 10 days for DB to purge those devices old data may work also but not sure. I expect history is showing data from before you exclude from recordr
OK. I was not patient enough.
When I excluded everything except 2 sensors (only entities section in include: part ) the history showed only those 2 sensors. Then I did some changes in config expecting the same immediate response.
But at the end it works as it should. Until I have excluded sensor and switch they were recorded and I can see it in history if I move the date. Today those 2 entities do not show in history so things are working as they should !