How can I delete a file with FileOutputStream and not just its contents [closed] Closed 3 months ago.