Skip to content

Settings API

Sarah Xu edited this page Nov 17, 2022 · 7 revisions

<Settings>

/<deleteAllData()/>

  • 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"

Signature

static deleteAllData(): Boolean

Returns

  • It will return a boolean of True if the deletion was successful