Add rmem for remove-extra-media