Course lesson
Delete a Document with a Confirmation Step from Firestore
We'll learn how to delete documents from the database. This action is pretty straight forward, we'll add a delete button that will call Firestore deleteDoc and pass in the task id.
- Duration
- 4 min
- Access
- Included
- Transcript
- Retained from source evidence
We'll learn how to delete documents from the database. This action is pretty straight forward, we'll add a delete button that will call Firestore deleteDoc and pass in the task id.
We'll also explore a good practice when performing destructive operations (like deleting database objects) of adding a confirmation step to make sure our users don't delete objects by accident. We'll do this with the Ionic Alert Controller.