The ipcrm(1) utility removes message queues, semaphore
sets, and shared memory segments from the system. The options
specify which interprocess communication object is to be removed.
Generally, a lowercase option takes an identifier as an argument
and the uppercase option takes a key as an argument. The uppercase
option removes the object created using the specified key.
Removes the shared memory identifier shmid; after the
last detach, the associated shared memory segment and associated
data structure are destroyed.
-Mshmkey
Removes the shared memory identifier that was created using
shmkey; after the last detach, the associated shared memory
segment and associated data structure are destroyed.
-qmsgid
Removes the message queue identifier msgid and destroys
its associated message queue and data structure.
-Qmsgkey
Removes the message queue identifier that was created using
msgkey and destroys its associated message queue and data
structure.
-ssemid
Removes the semaphore identifier semid and destroys the
associated set of semaphores and data structure.
-Ssemkey
Removes the semaphore identifier that was created using
semkey and destroys the associated set of semaphores and
data structure.