// Create a reference to the file to deleteletdesertRef=storageRef.child("desert.jpg")do{// Delete the filetryawaitdesertRef.delete()}catch{// ...}
Objective-C
// Create a reference to the file to deleteFIRStorageReference*desertRef=[storageRefchild:@"images/desert.jpg"];// Delete the file[desertRefdeleteWithCompletion:^(NSError*error){if(error!=nil){// Uh-oh, an error occurred!}else{// File deleted successfully}}];