I am trying to delete all files in a folder:-
import java.io.*; public class AddService { public static void main(String args[]){ File folder=
There is nothing wrong with your code except you should give the full path.
try this : File folder=new File("C:\\inputs");
File folder=new File("C:\\inputs");
instead of this line : File folder=new File("inputs");
File folder=new File("inputs");