Dim allsdcard As List
Dim MyFile As String
Dim i,j As Int
allsdcard.Initialize
allsdcard.AddAll(File.ListFiles(File.DirRootExternal))
For i= allsdcard.Size-1 To 0 Step -1
MyFile = allsdcard.Get(i)
If File.IsDirectory(File.DirRootExternal, MyFile)=True Then
Dim MyfileChild As String
Dim allsdcardChild As List
allsdcardChild.initialize
allsdcardChild.AddAll(File.ListFiles(File.DirRootExternal & "/" & MyFile))
For j= allsdcardChild.Size-1 To 0 Step -1
MyfileChild= allsdcardChild.Get(j)
File.Delete(File.DirRootExternal& "/" & MyFile) ,MyfileChild )
Next
End If
File.Delete(File.DirRootExternal,allsdcard )
Next