DELETE /connections/{connectionId} – Deletes a connection by its ID.
Headers:
Authorization: Bearer <access_token>
Content-Type: application/json or application/x-www-form-urlencoded
Body:
Path Parameters:
Query Parameters:
204 No Content
400
401
404
500
{ "error": "Detailed error message here"} Copy
{ "error": "Detailed error message here"}
DELETE /connections/exampleConnectionId{} // provider defaults to "auth0-connection" if omitted Copy
DELETE /connections/exampleConnectionId{} // provider defaults to "auth0-connection" if omitted
DELETE /connections/exampleUserPoolId{ "provider": "cognito-connection",} Copy
DELETE /connections/exampleUserPoolId{ "provider": "cognito-connection",}
{} Copy
{}
The API Gateway event containing the request.
A Promise resolving to an API Gateway-compatible response.
DELETE /connections/{connectionId} – Deletes a connection by its ID.
Remarks
📥 Request
Headers:
Authorization: Bearer <access_token>(required)Content-Type: application/json or application/x-www-form-urlencoded(required)Body:
Path Parameters:
Query Parameters:
📤 Response
204 No Content– Indicates successful deletion with no content returned.❗ Errors
400401404500Error Response Format
📦 Examples
📥 Auth0 Request
📥 Cognito Request
📤 Response Example