> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# deleteLassoElements

> 删除套索元素数据。

<Note>
  套索元素之后才能调用这个接口，否则会调用失败。
</Note>

```ts theme={null}
static deleteLassoElements(): Promise<APIResponse<boolean>>;
```

**返回**

* [`APIResponse<boolean>`](/zh/api-reference/supernote-plugin/types/api-response)：
  `result === true` 表示删除套索数据成功

## 示例

```ts wrap theme={null}
import { PluginCommAPI } from 'sn-plugin-lib';

/**
 * 删除当前套索元素数据的示例。
 */
export async function exampleDeleteLassoElements() {
  const res = await PluginCommAPI.deleteLassoElements();
  if (!res.success) {
    throw new Error(res.error?.message ?? 'deleteLassoElements 调用失败');
  }
  return res.result;
}
```
