//Para eliminar archivos, podemos utilizar el siguiente código: let fileRef = storageRef.child("files").child("fileName") fileRef.delete { (error) in if let error = error { print("Error al eliminar archivo: \(error.localizedDescription)") return } print("Archivo eliminado con éxito") }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter