> For the complete documentation index, see [llms.txt](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://linux-tutorial-cli.gitbook.io/linux-cli-tutorial/txt-files/lprm.md).

# lprm

## lprm

The `lprm` command in Linux is used to remove jobs from the print queue. It can be used to remove individual jobs or to remove all of the jobs in the queue.

The syntax for the `lprm` command is as follows:

```
lprm [options] job-id
```

The `job-id` argument specifies the job ID of the job to remove.

The `options` argument specifies additional options for the `lprm` command. The most common options are as follows:

* `-a`: Removes all of the jobs in the queue.
* `-i`: Prompts for confirmation before removing the job.
* `-f`: Forces the removal of the job, even if it is already printing.

For example, the following command removes the job with the ID 1234 from the queue:

```
lprm 1234
```

The `lprm` command is a useful tool for managing the print queue in Linux. It can be used to remove jobs that are no longer needed or that are causing problems.

Here are some additional things to keep in mind about the `lprm` command:

* The `lprm` command must be run as root or by a user who has permission to manage the print queue.
* The `lprm` command can only be used to remove jobs from the print queue that are configured on the system.
* The `lprm` command cannot be used to remove jobs from a printer that is located on a different machine on the network.

It is important to be aware of these limitations when using the `lprm` command, so that you do not accidentally remove a job that you need or that is causing problems for another user.

## help

```
```
