If any of the -q, -Q, -s, -S, -m, or -M arguments are given, the ipcrm shall behave as described in POSIX 1003.1-2001 (ISO/IEC 9945-2003).
Otherwise, ipcrm shall remove the resource of the specified type identified by id.
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.