Java tutorial
//package com.java2s; import java.io.File; import android.util.Log; public class Main { private static final String tag = "ActivityHelper"; public static final String TWEETS_FILE_PATH = "/sdcard/tbutler.ser"; private static synchronized void removeFile() { try { File file = new File(TWEETS_FILE_PATH); if (file.exists()) { file.delete(); } } catch (Exception er) { Log.e(tag, "Error removing file", er); } } }