delete method
Delete an organization
organizationId
The ID of the organization to delete
Implementation
Future<void> delete({required String organizationId}) async {
try {
await dio.post(
"/organization/delete",
data: {"organizationId": organizationId},
options: await getOptions(isTokenRequired: true),
);
} catch (e) {
final message = getErrorMessage(e);
if (message == null) rethrow;
throw message;
}
}