Reference: ipcrm
Author: Daniel Gilly & the Staff of O'Reilly & Associates
Date: 1998-08-06T21:53:11Z

#

| Chapter 2 UNIX Commands |

## ipcrm

    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.

### Options

-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`.

Reference: install |  | Reference: ipcs