Java tutorial
//package com.java2s; import java.io.File; public class Main { /** * task:delete recording * @param filePath file path */ public static void deleteRecording(String filePath) { File file = new File(filePath); if (file.exists()) { file.delete(); } } }