Bir dosyayı silmek için önce o dosyaya referans oluşturun. Ardından, bu referansta DeleteAsync() yöntemini çağırın.
// Create a reference to the file to delete.StorageReferencedesertRef=storageRef.Child("images/desert.jpg");// Delete the filedesertRef.DeleteAsync().ContinueWithOnMainThread(task=>{if(task.IsCompleted){Debug.Log("File deleted successfully.");}else{// Uh-oh, an error occurred!}});
Hataları İşleme
Dosyanın mevcut olmaması veya kullanıcının belirtilen dosyayı silme izninin olmaması gibi çeşitli nedenlerle dosya silme işlemlerinde hatalar oluşabilir. Hatalar hakkında daha fazla bilgiyi dokümanların Hataları İşleme bölümünde bulabilirsiniz.
[[["Anlaması kolay","easyToUnderstand","thumb-up"],["Sorunumu çözdü","solvedMyProblem","thumb-up"],["Diğer","otherUp","thumb-up"]],[["İhtiyacım olan bilgiler yok","missingTheInformationINeed","thumb-down"],["Çok karmaşık / çok fazla adım var","tooComplicatedTooManySteps","thumb-down"],["Güncel değil","outOfDate","thumb-down"],["Çeviri sorunu","translationIssue","thumb-down"],["Örnek veya kod sorunu","samplesCodeIssue","thumb-down"],["Diğer","otherDown","thumb-down"]],["Son güncelleme tarihi: 2026-06-16 UTC."],[],[]]