# Introduction In this lab, we will learn how to delete a file or directory in Java using the `File` class. We will cover the `delete()` and `deleteOnExit()` methods, and provide examples of how to use them.
Click the virtual machine below to start practicing