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.
AuthorizationstringheaderrequiredBearer token. Use a Dravo API key (`dra_...`) or a dashboard JWT.
oauth_app_idstringpathrequiredOAuth app id.
Error codes
401Missing or invalid API key / JWT.
409This 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."}