add delete method in media