I've found the solution.
These resources reside in "mdl_url" table, I just deleted all instances of that url from the table and cleared all caches in my site and they got removed from all the courses.
I've found the solution.
These resources reside in "mdl_url" table, I just deleted all instances of that url from the table and cleared all caches in my site and they got removed from all the courses.