This works for me:

private void deleteFiles() {
        File dir = new File(<path to the files>);

        String[] children = dir.list();
        if (children != null) {
                for (int i=0; i<children.length; i++) {
                        String filename = children[i];
                        File f = new File(filePath + filename);
                        if (f.exists()) {
                                f.delete();
                        }
                }
        }
}

-John Coryat

"Radar Now!"

"What Zip Code?"
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to