Delete files with extension current directory Java

Delete files with extension current directory Java

If you want to delete files from current folder with certain extension please use below sample java program:

  • Sample java class:

  • Output:

Delete files with extension current directory Java

For more information delete files please refer oracle documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *