deleteOrganizationWithHttpInfo method

Future<Response> deleteOrganizationWithHttpInfo(
  1. String organizationId
)

Delete an organization

Deletes the given organization. Please note that deleting an organization will also delete all memberships and invitations. This is not reversible. After the organization is deleted, any user's active sessions that contain the deleted organization will be cleared.

Note: This method returns the HTTP Response.

Parameters:

  • String organizationId (required): The ID of the organization to delete

Implementation

Future<http.Response> deleteOrganizationWithHttpInfo(
  String organizationId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/organizations/{organization_id}'
      .replaceAll('{organization_id}', organizationId);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];

  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}