Here you can find the source of deleteOldStorageFile(String filepath)
public static void deleteOldStorageFile(String filepath)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { /**//w w w . ja va 2 s. c om * Delete the original storage file that the activity manager is saved in */ public static void deleteOldStorageFile(String filepath) { File oldStorage = new File(filepath); oldStorage.delete(); } }