deleteDatabaseUser static method
Implementation
static Future<Map<String, Object?>> deleteDatabaseUser(
final Client cloudApiClient, {
required final String projectId,
required final String username,
}) async {
try {
await cloudApiClient.database.deleteDatabaseUser(
cloudCapsuleId: projectId,
username: username,
);
} on NotFoundException catch (e) {
throw FailureException(error: e.message);
} on InvalidValueException catch (e) {
throw FailureException(error: e.message);
} on Exception catch (e, stackTrace) {
throw FailureException.nested(
e,
stackTrace,
'Failed to delete database user',
);
}
return {'username': username};
}