Remove variable mode
mode.remove()
Remove a variable mode from a collection
Syntax
Returns
Promise<boolean>
A Promise that resolves to boolean.
Example
The base mode can’t be removed. Calling remove() on a collection’s base mode rejects with a VariableModeInvalid error, so guard against it when removing modes programmatically.