Delete a custom connector
Deletes a custom connector by its identifier. Delete its connections first: while any connection uses the connector, the call returns 400 with PROVIDER_HAS_EXISTING_CONNECTIONS. Deletion can't be undone.
Authorization
Authorization: Bearer $TOKEN, an access token from the client credentials grant. See Authentication.
Path parameters
identifierstringrequiredidentifier, from the create response.scalekit_client.actions.providers.delete_custom_provider
Delete a custom provider by identifier. Deletion is permanent. Returns an empty response on success. Any error (provider not found, insufficient permissions) raises a ScalekitServerException subclass before this method returns.
scalekit_client.actions.providers.delete_custom_provider( request: DeleteCustomProviderRequest,) -> DeleteCustomProviderResponseParameters
requestDeleteCustomProviderRequestrequiredReturns DeleteCustomProviderResponse: Empty response confirming deletion.
From scalekit-sdk-python 2.19.1.
scalekit.actions.providers.deleteCustomProvider
Deletes a custom connector. Remove the connector's connections and connected accounts first; the server refuses to delete one that is still in use, with [invalid_argument] cannot delete custom provider with existing connections. Connected accounts come off with actions.deleteConnectedAccount. The app connection itself has to go from the Scalekit dashboard: this SDK wraps no delete for an environment-scoped connection, and connection.deleteConnection takes an organizationId, which an app connection does not have.
scalekit.actions.providers.deleteCustomProvider( identifier: string,): Promise<DeleteProviderResponse>Parameters
identifierstringrequiredidentifier, from the create response.Returns Promise<DeleteProviderResponse>.
From @scalekit-sdk/node 2.18.0.
Errors
Every error has the same body: code, message and details. See Errors and rate limits.
400Invalid request - error code PROVIDER_HAS_EXISTING_CONNECTIONS when a connection still uses the connector. Delete its connections first.404Not Found - no custom provider exists with the given identifier