public async Task DeleteFileAsync() { var file = SelectedFile; if (file == null) { Log($"No file selected"); return; } var c = new SwiftClient(); if (!await AuthenticateIfNeededAsync()) { Log($"Could not authenticated: could not retreive a valid token"); return; } c.InitToken(Token); var resp = await c.ObjectDeleteAsync(ObjectStoreUrl, Container, file.Name); Log($"File '{file.Name}' {(resp.IsSuccess ? "" : "not ")}deleted successfully"); await ContainerInfoAsync(); }