Included specific deleteMedia function