How do I delete files attached with media entity?
You have to delete old versions of entities (articles etc.) where you used the files for the files to get the "used in 0 places" under /admin/content/files. After that status should be changed to temporary with option make_unused_managed_files_temporary set to true.