> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteCard # Package: pipelinesManagement # Namespace: Cards # Method link: https://dev.wix.com/docs/api-reference/crm/crm/pipelines-management/cards/delete-card.md ## Permission Scopes: Manage Pipelines: SCOPE.DC-CRM.MANAGE-PIPELINES ## Introduction Deletes a card. Deleting a card permanently removes it from a site. --- ## REST API ### Schema ``` Method: deleteCard Description: Deletes a card. Deleting a card permanently removes it from a site. URL: https://www.wixapis.com/crm/pipelines/v1/cards/{cardId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: cardId Method parameters: param name: cardId | type: none | required: true Return type: DeleteCardResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a card Deletes a card permanently. ```curl curl -X DELETE \ 'https://www.wixapis.com/crm/pipelines/v1/cards/a1b2c3d4-e5f6-7890-1234-567890abcdef' \ -H 'Authorization:' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.pipelinesManagement.Cards.deleteCard(cardId) Description: Deletes a card. Deleting a card permanently removes it from a site. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: cardId Method parameters: param name: cardId | type: string | description: Card GUID to delete. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteCard ```javascript import { cards } from '@wix/crm'; async function deleteCard(cardId) { const response = await cards.deleteCard(cardId); }; ``` ### deleteCard (with elevated permissions) ```javascript import { cards } from '@wix/crm'; import { auth } from '@wix/essentials'; async function myDeleteCardMethod(cardId) { const elevatedDeleteCard = auth.elevate(cards.deleteCard); const response = await elevatedDeleteCard(cardId); } ``` ### deleteCard (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { cards } from '@wix/crm'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { cards }, // Include the auth strategy and host as relevant }); async function deleteCard(cardId) { const response = await myWixClient.cards.deleteCard(cardId); }; ``` ---