delete
Destroys and deletes an object from Verza servers (only for permanent objects).
Syntax
object.delete();
Returns
Promise<void>
- A promise that resolves when the object is deleted.
Example
// create a box
const box = engine.objects.create('box');
// make it permanent
await box.save();
// delete it
await box.delete();
Available on: Client Server