Similar to uploading a file from the client, is it possible for the client to delete their own Entity File on PlayFab?
Similar to uploading a file from the client, is it possible for the client to delete their own Entity File on PlayFab?
Yes, you can check this API DeleteFiles for details. For example on Unity, you can use PlayFabDataAPI.DeleteFiles to delete the Entity files. You can refer to the following main code. Similar to uploading a file, before you use this API please make sure you enable the entity API too.
... void DeleteFile() { var request = new PlayFab.DataModels.DeleteFilesRequest { Entity = new PlayFab.DataModels.EntityKey { Id = entityId, Type = entityType }, FileNames = new List<string> { ActiveUploadFileName }, }; PlayFabDataAPI.DeleteFiles(request, OnDeleteFilesSuccess, OnSharedFailure); } ...
2 People are following this question.