ipcrm -- remove IPC Resources


ipcrm [-q msgid | -Q msgkey | -s semid | -S semkey | -m shmid | -M shmkey]...
ipcrm [shm | msg | msg] id...


If any of the -q, -Q, -s, -S, -m, or -M arguments are given, the ipcrm shall behave as described in POSIX 1003.1-2008 (ISO/IEC 9945-2009).

Otherwise, ipcrm shall remove the resource of the specified type identified by id.

Future Directions

A future revision of this specification may deprecate the second synopsis form.

Rationale: In its first Linux implementation, ipcrm used the second syntax shown in the SYNOPSIS. Functionality present in other implementations of ipcrm has since been added, namely the ability to delete resources by key (not just identifier), and to respect the same command line syntax. The previous syntax is still supported for backwards compatibility only.