cleanup mediadef