There is currently a bug that does not affect functionality. However, we want to ensure we are taking the proper steps to build this application. Currently, when a habit is deleted, the habit event sub collection remains in the database. This cannot continue. The sub collection must be deleted as well. Implement a solution to recursively delete all habit events belonging to a habit when the habit is deleted.
This issue is related to user story #16
There is currently a bug that does not affect functionality. However, we want to ensure we are taking the proper steps to build this application. Currently, when a habit is deleted, the habit event sub collection remains in the database. This cannot continue. The sub collection must be deleted as well. Implement a solution to recursively delete all habit events belonging to a habit when the habit is deleted.