# lprm

删除打印队列中的打印任务

## 补充说明

**lprm命令** 用于删除打印队列中的打印任务。尚未完成的打印机任务会被放在打印机贮列之中，这个命令可用来将常未送到打印机的任务取消。

### 语法

```
lprm(选项)(参数)
```

### 选项

```
-E：与打印服务器连接时强制使用加密；
-P：指定接受打印任务的目标打印机；
-U：指定可选的用户名。
```

### 参数

打印任务：指定需删除的打印任务号。

### 实例

将打印机hpprint中的第102号任务移除：

```
lprm -Phpprint 102
```

将第101号任务由预设打印机中移除：

```
lprm 101
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/lprm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
