removed unnecessary media config condition, delete unused media config objects