Java tutorial
//package com.java2s; import android.content.Context; import java.io.File; public class Main { public static final String ACCOUNT_PREFERENCE = "rebate_accountInfo"; public static void removeFileAccountInfo(Context ctx) { File accountFile = ctx.getFileStreamPath(ACCOUNT_PREFERENCE); if (accountFile != null && accountFile.exists()) { accountFile.delete(); } } }