Skip to main content
DELETE
/
v2
/
vault-plus
/
media
Remove all stored media for a connection
curl --request DELETE \
  --url https://api.ofauth.com/v2/vault-plus/media \
  --header 'apiKey: <api-key>' \
  --header 'x-connection-id: <x-connection-id>'
{
  "success": true,
  "purgedCount": 2,
  "freedBytes": 1056000
}

Authorizations

apiKey
string
header
required

Your OFAuth API key for authenticating requests.

Headers

x-connection-id
string
required

Connection ID whose Vault+ cache should be read or modified.

Minimum string length: 1
Example:

"conn_v5bsqkzsjfk8cgr7hqbbw09t"

Response

All cached media variants for the connection were purged.

Connection purge response.

success
boolean
required

Whether the purge request completed.

Example:

true

purgedCount
number
required

Number of internal cached variants removed for this connection.

Example:

2

freedBytes
number
required

Total bytes freed by the purge.

Example:

1056000