Removes the profile's connection to the provider. The stored token is deleted, and the provider grant revoked where supported (Dropbox, Google Drive), only when no other profile uses it. Unlinking a shared connection leaves it in place for the other profiles.
If location is the profile's active media storage location, the profile is reset to S3 (MEDIA_LOCATION 5) in the same transaction, so it never points at a removed connection. Deleting an inactive location leaves the active one unchanged.
For Dropbox the legacy ZCCompanyInfo Dropbox columns are cleared as well.
Authorization
Internal clients only, and a SERVER or COMPANY user.
DELETE
/media_storage/connections/{location}
curl \
--request DELETE 'https://api.iformbuilder.com/exzact/api/v81/[servername]/media_storage/connections/{location}' \
--header "Authorization: Bearer {access_token}"
Response examples (200)
[
{
"provider": "google_drive",
"location": 8,
"active": false,
"account": "Jane Example"
}
]