Added media delete to addMedia