added media deletion