I create a file in #PB_LocalStorage to test a record of a sqlite database. I don't find how to delete this file. The Purebasic command DELETE FILE don't exit in Spiderbasic.
Procedure DeleteFile(FileName$, Mode=0)
! LocalForage.removeItem("sbfs_" + v_filename$).then(function() {
! // Run this code once the file has been removed.
Debug "The file was successfully deleted"
! }).catch(function(err) {
! // This code runs if there were any errors
! console.error(err);
! });
EndProcedure
P.S.: The code only works if at least one file command (e.g. CreateFile()) is present in the code. Only then will the LocalForage library of SpiderBasic be integrated into the code.