Module for automatically cleaning entity files that are no longer in use.
Files are cleaned by cron. To configure, you need to add lines to the file settings.php.

$config['clean_files_entity'] = [
	'folders'		=> [
		'public://node_images/',
	],
	'max'			=> 100
];