Java Delete File deleteFile(File source)

Here you can find the source of deleteFile(File source)

Description

delete File

License

Apache License

Declaration

public static void deleteFile(File source) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.io.*;

public class Main {
    public static void deleteFile(File source) {
        if (source.exists()) {
            source.delete();/*  w  w w  .j a v  a  2 s.c  o m*/
        }
    }
}

Related

  1. deleteFile(File file)
  2. deleteFile(File file)
  3. deleteFile(File file)
  4. deleteFile(File file)
  5. deleteFile(File file)
  6. deleteFile(final File f, final int attempts, final long sleepTime)
  7. deleteFile(final File file)
  8. deleteFile(final File file)
  9. deleteFile(final File file)