remove useless media