Delete a provider
DELETE
/providers/{id}
const url = 'https://api.canopyhq.dev/providers/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.canopyhq.dev/providers/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
A provider’s name within its tenant.
string
The provider to delete.
Responses
Section titled “Responses”The provider and the secret minted for it were deleted.
No console token, or one that did not verify.
Only an owner may delete a provider.
The tenant keeps no provider by that name.
Presets still run on this provider; nothing is cascaded.
Media typeapplication/json
The presets that must move off a provider before it can be deleted.
object
inferences
required
Array<string>
message
required
string
Examplegenerated
{ "inferences": [ "example" ], "message": "example"}