add rm command to remove file

This commit is contained in:
liamcottle
2025-06-07 15:44:36 +12:00
parent 0f601752e4
commit a22c176d45
3 changed files with 18 additions and 0 deletions

View File

@@ -52,6 +52,10 @@ File DataStore::openRead(const char* filename) {
#endif
}
bool DataStore::removeFile(const char* filename) {
return _fs->remove(filename);
}
bool DataStore::formatFileSystem() {
#if defined(NRF52_PLATFORM) || defined(STM32_PLATFORM)
return _fs->format();