How to delete file

Just starting out? Need help? Post your questions and find answers here.
bmld76
Posts: 26
Joined: Wed May 24, 2023 5:10 pm

How to delete file

Post by bmld76 »

Hello,

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.
*DatabaseBuffer = ExportDatabaseMemory(0)
If CreateFile(0, FichierBase, @CreateFileCallback(), #PB_LocalStorage)
WriteData(0, *DatabaseBuffer, 0, MemorySize(*DatabaseBuffer))
CloseFile(0)
EndIf
Thank for your help