deleteAllKey method
Deletes all keys
Implementation
Future<void> deleteAllKey() async {
var response =
await AtLocationNotificationListener().atClientInstance!.getKeys(
regex: '',
);
await Future.forEach(response, (dynamic key) async {
if (!'@$key'.contains('cached')) {
// the keys i have created
var atKey = getAtKey(key);
var result = await AtClientManager.getInstance().atClient.delete(
atKey,
);
_logger.finer('$key is deleted ? $result');
}
});
}