async public void DeleteFile(string titleId, DownloadedFile fileInfo) { var currentPlayFabTitleId = PlayFabSettings.TitleId; var currentDevKey = PlayFabSettings.DeveloperSecretKey; var title = FindTitle(titleId); PlayFabSettings.TitleId = titleId; PlayFabSettings.DeveloperSecretKey = title.SecretKey; var key = fileInfo.FilePath.Split('/').ToList()[fileInfo.FilePath.Split('/').ToList().Count - 1]; var type = MimeMapping.GetMimeMapping(key); var file = new DeleteContentRequest(); var result = await PlayFabAdminAPI.DeleteContentAsync(file); }