Skip to main content

Delete a connector

Delete a connector when you no longer need it in your CDC Service.

Prerequisites​

Delete the connector​

  1. Select Data platform → Workspace management, then select your workspace.

  2. On the Overview tab, under Services, select the CDC card.

  3. Select the Connectors tab.

  4. In the row of the connector, select the more icon (⋮), then select Connector → Delete.

    More menu of a stopped connector on the Connectors tab with Connector selected and the Delete option highlighted

    You can also open the connector details and select Actions → Connector → Delete.

  5. In the Delete Connector dialog, enter delete, then select Confirm.

    Delete Connector dialog with delete entered in the confirmation box and the Confirm button

danger

Deleting a connector cannot be undone.

Deleting a connector removes the connector and its configuration only. These stay:

  • The Kafka topics that the connector wrote to or read from, with their messages.
  • The data that the connector already wrote to the target.
  • The offsets that the connector saved.
  • The objects in the source database, such as the replication slot and the publication of a PostgreSQL source, and the cdc_signal table of an incremental snapshot.

Clean up a PostgreSQL source​

After you delete a PostgreSQL source connector, remove its replication slot and its publication from the source database. Use the Slot name and the Publication name that you entered when you created the connector.

warning

PostgreSQL keeps the WAL for a replication slot that no connector reads, so the disk of the source database keeps filling up until you remove the slot.

  1. Remove the replication slot.

    SELECT pg_drop_replication_slot('REPLICATION_SLOT_NAME');
  2. Remove the publication.

    DROP PUBLICATION PUBLICATION_NAME;

See Create a PostgreSQL source connector.

Next steps​