Search.../

deleteCard( )

Deprecated. This function is being discontinued in the upcoming months. We are working to provide alternatives, and we'll provide timely updates before implementing any changes. We understand that this transition might present challenges, and we appreciate your patience and understanding.

Description

Deletes a workflow card by ID.

The deleteCard() function returns a Promise when the specified card has been deleted.

This function requires you to specify the ID of a card. To learn about retrieving IDs in the Workflow API, see Retrieving IDs.

Syntax

function deleteCard(cardId: string): Promise<void>

deleteCard Parameters

NAME
TYPE
DESCRIPTION
cardId
string

ID of the card to delete.

Returns

Fulfilled - When the card has been deleted.

Return Type:

Promise<void>

Was this helpful?

Delete a card

Copy Code
1import { Permissions, webMethod } from 'wix-web-module';
2import { workflows } from 'wix-crm-backend';
3
4export const deleteCard = webMethod(Permissions.Anyone, (cardId) => {
5 return workflows.deleteCard(cardId);
6});
7
8// Returns a promise that resolves to void.