private async void clearAllMaps() { IGetSlamMapsResponse mapList = await _misty.GetSlamMapsAsync(); Debug.WriteLine(mapList.Data); IList <MapDetails> mapDetails = mapList.Data; for (int i = 0; i < mapDetails.Count; i++) { await _misty.DeleteSlamMapAsync(mapDetails[i].Key); } System.Threading.Thread.Sleep(5000); }