diff --git a/src/main/java/com/rarchives/ripme/utils/Utils.java b/src/main/java/com/rarchives/ripme/utils/Utils.java index b6d2b973..9498af52 100644 --- a/src/main/java/com/rarchives/ripme/utils/Utils.java +++ b/src/main/java/com/rarchives/ripme/utils/Utils.java @@ -297,8 +297,12 @@ public class Utils { * Delete the url history file */ public static void clearURLHistory() { - File file = new File(getURLHistoryFile()); - file.delete(); + Path file = Paths.get(getURLHistoryFile()); + try { + Files.delete(file); + } catch (IOException e) { + e.printStackTrace(); + } } /**