Delete an account using the Flow Service API

You can delete sources accounts that contain errors or have become obsolete using the Flow Service API.

See the following tutorial for steps on how to delete an account using the API.

Getting started

This tutorial requires you to have a valid connection ID. If you do not have a valid connection ID, select your connector of choice from the sources overview and follow the steps outlined before attempting this tutorial.

This tutorial also requires you to have a working understanding of the following components of Adobe Experience Platform:

  • Sources: Experience Platform allows data to be ingested from various sources while providing you with the ability to structure, label, and enhance incoming data using Platform services.
  • Sandboxes: Experience Platform provides virtual sandboxes which partition a single Platform instance into separate virtual environments to help develop and evolve digital experience applications.

Using Platform APIs

For information on how to successfully make calls to Platform APIs, see the guide on getting started with Platform APIs.

Delete account

TIP
Before deleting the source account, you must first delete any existing dataflows associated with the source account. To delete existing dataflows, refer to the tutorial on deleting sources dataflows.

To delete an account, make a DELETE request to the Flow Service API while providing the base connection ID that corresponds with the account that you want to delete.

API format

DELETE /connections/{BASE_CONNECTION_ID}
Parameter
Description
{BASE_CONNECTION_ID}
The base connection ID of the source account you want to delete.

Request

curl -X DELETE \
  'https://platform.adobe.io/data/foundation/flowservice/connections/dd3631cd-d0ea-4fea-b631-cdd0ea6fea21' \
  -H 'Authorization: Bearer {ACCESS_TOKEN}' \
  -H 'x-api-key: {API_KEY}' \
  -H 'x-gw-ims-org-id: {ORG_ID}' \
  -H 'x-sandbox-name: {SANDBOX_NAME}'

Response

A successful response returns HTTP status 204 (No Content) and a blank body.

You can confirm the deletion by attempting a lookup (GET) request to the connection.

Next steps

By following this tutorial, you have successfully used the Flow Service API to delete existing accounts.

For steps on how to perform these operations using the user interface, please refer to the tutorial on deleting accounts in the UI.

recommendation-more-help
337b99bb-92fb-42ae-b6b7-c7042161d089