Home > LIB_Footprint > delete
LIB_Footprint.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 Footprint
Signature
typescript
function delete(footprintUuid: string, libraryUuid: string): Promise<boolean>;1
Parameters
Parameter | Type | Description |
|---|---|---|
footprintUuid | string | Footprint 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 footprintUuid = await eda.lib_Footprint.create(
libraryUuid,
`嘉立创示例_待删除封装_${Date.now()}`,
[]
);
// 2. 删除该封装
const deleted = await eda.lib_Footprint.delete(footprintUuid, libraryUuid);
console.log('footprintUuid:', footprintUuid);
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