free removed device memory