Delete a variant (Beta)
Delete a variant (Beta)
component.deleteVariant(options)
Deletes a variant from a component by ID.
You cannot delete the base variant.
Beta
These methods are in public beta and may change with future releases.
Syntax
Related interfaces:
Parameters
-
options: DeleteVariantOptions — An object specifying the variant to delete:id: string — The ID of the variant to delete.
Returns
Promise<void>
A Promise that resolves when the variant is deleted.