Home > LIB_Symbol > delete
LIB_Symbol.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 Symbol
Signature
typescript
function delete(symbolUuid: string, libraryUuid: string): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
symbolUuid | string | Symbol 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 symbolUuid = await eda.lib_Symbol.create(libraryUuid, `嘉立创示例_待删除符号_${Date.now()}`, []);
// 2. 删除该符号
const deleted = await eda.lib_Symbol.delete(symbolUuid, libraryUuid);
console.log('symbolUuid:', symbolUuid);
console.log('deleted:', deleted);1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9