Remove based on file and title, make a second loop to check if the file is still used by a task definition