Check values ​​from media tables array and mark files there in use or
folders contains files there are in use