remove unnecessary media