Home > LIB_PanelLibrary > delete
LIB_PanelLibrary.delete() method
This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Delete Panel library
Signature
typescript
function delete(panelLibraryUuid: string, libraryUuid: string): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
panelLibraryUuid | string | Panel library UUID |
libraryUuid | string | Library UUID, you can use LIB_LibrariesList APIs in |
Returns
Promise<boolean>
Whether the operation is successful
Example
javascript
// 1. 获取个人库 UUID 并新建删除对象
const libraryUuid = await eda.lib_LibrariesList.getPersonalLibraryUuid();
const panelLibraryUuid = await eda.lib_PanelLibrary.create(
libraryUuid,
`嘉立创示例_待删除面板库_${Date.now()}`,
[]
);
// 2. 删除该面板库
const deleted = await eda.lib_PanelLibrary.delete(panelLibraryUuid, libraryUuid);
console.log('panelLibraryUuid:', panelLibraryUuid);
console.log('deleted:', deleted);1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13