I had a look a while ago and could not find one. I use this code to do the trick
[lua]deleteDir = function(dirToDel)
–returns false if failed other wise returns true
local docPath = system.pathForFile( “”, system.DocumentsDirectory )
if( lfs.chdir( docPath )) then-- returns true on success
–delete all the files in the dir
for myFile in lfs.dir(docPath…"/"…dirToDel) do
– file is the current file or directory name
if(myFile ~= “.” and myFile ~= “…”) then
os.remove(docPath…"/"… dirToDel…"/"…myFile)
end
end
if(lfs.rmdir(dirToDel)) then
return true
else
return false
end
else
return false
end
end[/lua] [import]uid: 169392 topic_id: 33640 reply_id: 133759[/import]