Skip to main content

Delete Consultation

To permanently delete a consultation, use the deleteConsultation method. This is typically used for cleanup and requires a valid consultationID.

Usage Example:

import 'package:altibbi/service/api_service.dart';

ApiService apiService = ApiService();

void handleDelete(int id) async {
try {
await apiService.deleteConsultation(id);
print(\"Consultation deleted successfully\");
} catch (e) {
print(\"Delete Error: $e\");
}
}

Responses

Status 204 (No Content)

The consultation was successfully deleted.

Status 401 (Unauthorized)

Returned if the session token is missing or invalid.

Status 404 (Not Found)

Returned if the consultation ID does not exist or has already been deleted.