Android File Delete deleteFile(String filename)

Here you can find the source of deleteFile(String filename)

Description

delete File

Declaration

public static boolean deleteFile(String filename) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {

    public static boolean deleteFile(String filename) {
        File file = new File(filename);
        if (file.isFile()) {
            return file.delete();
        }//  w  w  w.ja  v a  2  s  .  co  m
        return false;
    }
}

Related

  1. deleteFile(File file)
  2. deleteFile(File root)
  3. deleteFile(File spec)
  4. deleteFile(String filePath)
  5. deleteFile(String filePath)
  6. deleteFile(String path)
  7. deleteFile(String path)
  8. deleteFile(String path)
  9. deleteFile(String path)