ipcrm(1)
NAME
ipcrm − remove a message queue, semaphore set
SYNTAX
ipcrm [options]
DESCRIPTION
The ipcrm command removes one or more specified messages, semaphores or shared memory identifiers.
The details of the removes are described in msgctl(2), shmctl(2), and semctl(2). The identifiers and keys may be found by ipcs(1).
OPTIONS
−M shmkey
Removes the shared memory identifier. This was created with key shmkey, from the system. The shared memory segment and data structure associated with it are destroyed after the last detach. The identifiers and keys are specified by the following options:
−m shmid
Removes the shared memory identifier. The shared memory segment and data structure associated with it are destroyed after the last detach.
−Q msgkey
Removes the message queue identifier specified by message key. This was created from the system and destroys the message queue and data structure associated with it.
−q msqid
Removes the message queue identifier specified by message key. It destroys the message queue and data structure associated with it.
−S semkey
Removes the semaphore identifier specified by semaphore key. This was created from the system and destroys the set of semaphores and data structure associated with it.
−s semid
Removes the specified semaphore queue identifier. It destroys the set of semaphores and data structure associated with it.
SEE ALSO
ipcs(1), msgctl(2), msgget(2), msgop(2), semctl(2), semget(2), semop(2), shmctl(2), shmget(2), shmop(2)