Delete Files on Android...如此处所述,为什么“存储”一词有误?
StorageReference storageRef = storage.getReference();
StorageReference desertRef = storageRef.child("Tuition Image");
desertRef.delete().addOnSuccessListener(new OnSuccessListener<Void>() {
@Override
public void onSuccess(Void aVoid) {
// File deleted successfully
}
}).addOnFailureListener(new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception exception) {
// Uh-oh, an error occurred!
}
});
答案 0 :(得分:2)
您是否已首先实现此功能?
FirebaseStorage storage = FirebaseStorage.getInstance();