-
Notifications
You must be signed in to change notification settings - Fork 2
Settings API
Sarah Xu edited this page Nov 17, 2022
·
7 revisions
- Delete all of the app’s data, including everything in RNFS.
- All data are stored in DocumentDirectoryPath/LessonPlans, so we delete the lesson plans folder and all files will be recursively deleted.
- Using RNFS.unlink() with the filepath DocumentDirectoryPath (a constant in RNFS) + "/LessonPlans"
static deleteAllData(): Boolean
- It will return a boolean of True if the deletion was successful