If File.Exists(SplitDir,SplitFile) Then
Msgbox("File Is being Deleted now!","DELETED")
File.Delete(SplitDir,SplitFile)
Else
Msgbox("Can't find file!","NOPE")
End If
I ended up using this and it worked:
B4X:
If File.Exists(SplitDir,SplitFile) Then
Msgbox("File Is being Deleted now!","DELETED")
Dim sb As StringBuilder
sb.Initialize
p.Shell("rm -r " & SplitDir & "/" & SplitFile , Null, sb, Null) ' free space
Else
Msgbox("Can't find file!","NOPE")
End If
I am more curious why the first snippet didn't work?