The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

deleteDataConnector

Deletes a specific CRM Analytics data connector by ID or developer name.

deleteDataConnector uses this CRM Analytics API resource.

  • connectorIdOrApiName— (Required) The ID or developer name of the connector.

The return type is void.

There are several ways to use deleteDataConnector. For example, you can display a list of connectors and enable delete on each connector on the list.

This example adds a delete button to a page with data connectors. Deleting a connector displays a toast message using the lightning/platformShowToastEvent module.

This button calls the deleteDataConnector() method.