add a delte method in media manager