Java File Path Delete deleteJaasFile(String jaasPath)

Here you can find the source of deleteJaasFile(String jaasPath)

Description

delete Jaas File

License

BSD License

Declaration

private static void deleteJaasFile(String jaasPath) throws IOException 

Method Source Code


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

import java.io.File;

import java.io.IOException;

public class Main {
    private static void deleteJaasFile(String jaasPath) throws IOException {
        File jaasFile = new File(jaasPath);
        if (jaasFile.exists()) {
            if (!jaasFile.delete()) {
                throw new IOException("Failed to delete exists jaas file.");
            }/*from   ww w.  j  a v  a  2  s.  c o  m*/
        }
    }
}

Related

  1. deleteFolderRec(File path, boolean alsoDeleteGivenFolder)
  2. deleteFolderRecursively(File path, boolean includeSelf)
  3. deleteIfExist(String filePath)
  4. deleteInPathTempFiles(String workingFolder)
  5. deleteInRemote(String host, String path)
  6. deleteKey(String path, String key)
  7. deleteMultipleFiles(String filePath, int numberOfFiles)
  8. deleteNonEmptyDirectory(String dirPath)
  9. deleteOldStorageFile(String filepath)