remove shared memory