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.
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:
For information on how to successfully make calls to Platform APIs, see the guide on getting started with Platform APIs.
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.
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.