Java Delete File deleteFile(String archiveFilename)

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

Description

delete File

License

Open Source License

Declaration

public static void deleteFile(String archiveFilename) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static void deleteFile(String archiveFilename) {
        try {//from ww  w .  java 2 s.  c  o m
            new File(archiveFilename).delete();
        } catch (Exception ex) {
            throw new RuntimeException("Cannot remove file: " + archiveFilename, ex);
        }
    }
}

Related

  1. deleteFile(final File file)
  2. deleteFile(final File file)
  3. deleteFile(final File file)
  4. deleteFile(final String dirname)
  5. deleteFile(Object fileObj)
  6. deleteFile(String dest)
  7. deleteFile(String f)
  8. deleteFile(String file)
  9. deleteFile(String file)