public async Task DeleteTableObjectAsync(TableObject tableObject) { await Task.Run(async() => { await InitAsync(); if (tableObject.UploadStatus == TableObjectUploadStatus.Deleted) { await DeleteTableObjectImmediatelyAsync(tableObject); } else { // Set the upload status of the table object to Deleted await tableObject.SetUploadStatusAsync(TableObjectUploadStatus.Deleted); } }); }