How to delete file? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to delete file?

28th Oct 2016, 5:08 PM
Rashil Ulak
Rashil Ulak - avatar
3 Answers
+ 1
If u mean delete your own proyects, go to te directory you set as workspace at the beggining, and then search the .java files. These are text files.
28th Oct 2016, 6:15 PM
Pablo RG
Pablo RG - avatar
+ 1
File in Java? create a file: File fileToDelete=new File("location"); fileToDelete.delete();
28th Oct 2016, 7:43 PM
bayram akdemir
bayram akdemir - avatar
- 2
file as in what? like a program on your computer. if so just right click and delete :)
28th Oct 2016, 5:27 PM
Aquarius
Aquarius - avatar