> For the complete documentation index, see [llms.txt](https://apidocs.zerionsoftware.com/doc/iformbuilder-v80/llms.txt)

# Delete Media Storage Connection

> DELETE /media_storage/connections/{location}
> 
> 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.



## Servers
- https://api.iformbuilder.com/exzact/api/v80/[servername]: https://api.iformbuilder.com/exzact/api/v80/[servername]


## Authentication methods
- Oauth2


## Parameters
### Headers

- **Authorization** (string)
  e.g. Bearer {access_token}


### Path parameters

- **location** (integer)
  provider location




## Responses
### 200
OK - the profile's remaining connections. Also returned when nothing was connected for `location`.

#### Body: application/json (array[object])
- **provider** (string)

- **location** (integer)
  the ZCApiConnector location code (2 Dropbox, 3 Box, 6 OneDrive, 7 SharePoint, 8 Google Drive)

- **active** (boolean)
  whether this is the profile's active media storage location

- **destination_root** (string)
  present only on the active location; a folder path for OneDrive and Dropbox, a library name for SharePoint, a folder id for Box and Google Drive

- **account** (string)
  the provider account's display name, when known


### 401
Unauthorized - missing or invalid bearer token.

### 403
Forbidden - the client is not an internal client, or the token belongs to a BASIC user.

### 404
Not Found - `location` is not one of 2, 3, 6, 7, 8.


[Powered by Bump.sh](https://bump.sh)
