One can use the cleansharedmemory.sh
script available under the
slsDetector Package.
One can also just delete the files that are typically located under /dev/shm/ folder and starts with slsDetectorPackage.
One no longer has to delete segments using ipcs.