Delete Connected Accounts

Delete a particular connected (linked) account.

There is no web based user interface way to delete an AWS account once it has been linked to an organization. The only way to do this is through the API.

URL

DELETE https://vmc.vmware.com/vmc/api/orgs/:org/account-link/connected-accounts/:linkedAccountPathId

Path Variables

KeyExample ValueHow do I find This
orgXXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXXFind My Org ID
KeyExample ValueHow do I find This
linkedAccountPathIdXXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXXGet Connected Accounts

Key Headers

KeyExample ValueHow do I find This
csp-auth-tokeneyJhbGciOiJSUzI1XXXXXXXXXXXXXXXXXX
XXXXXXXXeyJzdWIiOiJ2bXdhcmUuY29
VMware Cloud API Authentication

Example JSON Payload

none


Example Response Body

{
    "user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
    "user_name": "vmc_operator@csp.local",
    "created": "2022-06-17T19:16:43.000000Z",
    "version": 5,
    "id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
    "updated_by_user_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX",
    "updated_by_user_name": "vmc_operator@csp.local",
    "updated": "2022-08-02T13:37:45.000000Z",
    "state": "ACTIVE",
    "account_number": "123456789012",
    "policy_payer_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRole-XXXXX",
    "policy_payer_linked_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRolePayer-XXXXX",
    "policy_service_arn": "arn:aws:iam::123456789012:role/vmware-sddc-formation-XXXX-XXXX-XXXX-RemoteRoleService-XXXXX",
    "policy_external_id": "vmware-vmc",
    "cf_stack_name": "vmware-sddc-formation-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX",
    "region_to_az_to_shadow_mapping": null,
    "region_to_datacenter_to_az_mapping": null,
    "org_id": "XXXXXXXXX-1111-XXXX-1111-XXXXXXXXXXXX"
}