Delete platform credentials

View .md

Delete a saved OAuth app credential set when no connected accounts still use it.


Delete a saved platform credential set after disconnecting any accounts that still depend on it. Dravo refuses the delete while connected accounts reference the OAuth app, so you do not accidentally strand live connections.

DELETE/v1/oauth-apps/{oauth_app_id}
API key (dra_…) or dashboard JWT

Delete a saved platform credential set. It cannot be deleted while connected accounts still use it.

Authorizationstringheaderrequired

Bearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.

oauth_app_idstringpathrequired

OAuth app id.

Error codes

401

Missing or invalid API key / JWT.

409

This OAuth app has connected accounts. Remove them first.

const response = await fetch("https://api.dravo.dev/v1/oauth-apps/{oauth_app_id}", {  method: "DELETE",  headers: {  "Authorization": "Bearer " + process.env.DRAVO_API_KEY,}});const data = await response.json();console.log(data);
{  "status": 204,  "detail": "OAuth app deleted. Empty response body."}