I know how to remove old Docker images created more that N days ago. See here
But what I'd really like to do is to remove old Docker images that were not used for the last N days.
The goal is to keep images that are frequently used, even if no container is actually using them when I do the cleanup.
Is this possible?