Ableton delete unused clips bug

Hi,

The Manage Project / Delete unused files is buggy, as it is pointed out by others all over the internet. It finds some unused files, but also there are unused samples which are not found and deleted.
Saving as a new project and Collect All works correctly though, although it’s not very practical (we lose the actual benefits of having projects, and inside them, multiple sets).
Is there a way to remedy this? For example, do you know of a command line python script which scans project files and does the removing of unused recordings correctly?

Thank You,
Zsolt