Firebase Ep.5: Deleting data from Realtime Database (Xcode 9 Swift 4 iOS 11)

Words
159
Reading
1 min
Listen
Play
8y


Today will be talking about something about deleting data from the Firebase Realtime Database. It is very simple to delete data with just one line of code, however when it comes to getting the key to delete the data, we can use query or in my case you can get all the keys, put it in the array and use the indexPath.row to determine the record identifier from the record that needs to be deleted.

Related documentation you can refer to if you're stuck:
https://firebase.google.com/docs/database/ios/read-and-write
https://firebase.google.com/docs/database/ios/lists-of-data

Help fund my channel on Paypal: http://bit.ly/2c2uq0y
Great deals on Amazon: https://www.amazon.com/shop/influencer-4e0c513b
Shop on Amazon using our affiliate link: http://amzn.to/2bgofns
Shop on NewEgg using our affiliate link: http://bit.ly/2nvjVf3
Get a hosting on Bluehost: http://www.bluehost.com/track/techcoderx
Backup your computer with Backblaze: https://secure.backblaze.com/r/01p50l
Shop on Book Depository using our affiliate link: http://www.bookdepository.com/?a_aid=techcoderx-22
Follow me on Twitter: http://www.twitter.com/techcoderx
Check me out on eBay: http://www.ebay.com.my/usr/tianx0
Follow me on Google+: https://plus.google.com/u/0/110488612892506930385/posts
Contact me on LinkedIn: https://my.linkedin.com/in/eng-tian-xi-3b5b9943
My gear list: https://kit.com/TechCoderX/techcoderx-s-gear-list

Contribute to TechCoderX in cryptocurrency:
ETN: etnk4J6QBtcMew6Xn9PfqNErWdrsj1y4MhTK6knausRi5wgc9eiHhuT5kmHHLVfeWSLgJ4otYa6GFYvWy5eGvEcw6Jcphq4urR
ETH: 0xb446D2E6AA9BE5A844A5D447c36dDB2A5Eeb81b7


▶️ DTube
▶️ IPFS
Firebase Ep.5: Deleting data from Realtime Database (Xcode 9 Swift ... | Ecency