removeObjects
removeObjects
Signature
removeObjects(objectNamesOrIds: string[]): Promise<Object[]>Parameters
Name
Type
Required
Description
Returns
Usage
Notes
Last updated
// Remove single object
const removed = await api.removeObjects(["Sphere"]);
console.log("Removed:", removed[0].name);
// Remove multiple objects
const removed = await api.removeObjects(["Box", "Cylinder"]);
console.log("Removed count:", removed.length);
// Remove by ID
const removed = await api.removeObjects(["8febf451-a4eb-4f3d-8c0c-369512b8595f"]);