trim media folder contents