Pause the destination.
imqcmd pause dst -t q -n myQueue -u admin |
Compact the disk.
imqcmd compact dst -t q -n myQueue -u admin |
Resume the physical destination.
imqcmd resume dst -t q -n myQueue -u admin |
If destination type and name are not specified, these operations are performed for all physical destinations.