ipcrm
[
options
]
Remove a message queue, semaphore set, or shared memory identifier as
specified by the
options
.
ipcrm
is useful for freeing shared
memory left behind by programs that failed to de-allocate the space.
Use
ipcs
first to list items to remove.
-
-m
shmid
-
Remove shared memory identifier
shmid
.
-
-M
shmkey
-
Remove
shmid
created with key
shmkey
.
-
-q
msqid
-
Remove message queue identifier
msqid
.
-
-Q
msgkey
-
Remove
msqid
created with key
msgkey
.
-
-s
semid
-
Remove semaphore identifier
semid
.
-
-S
semkey
-
Remove
semid
created with key
semkey
.