Java tutorial
//package com.java2s; //License from project: Open Source License import android.content.Context; public class Main { private static final String WISHLIST_NAME = "card.wishlist"; /** * Delete the wishlist * * @param mCtx A context to open the file wish */ public static void ResetCards(Context mCtx) { String[] files = mCtx.fileList(); for (String fileName : files) { if (fileName.equals(WISHLIST_NAME)) { mCtx.deleteFile(fileName); } } } }