static boolean deleteImageFile ( String imagePath ) { // Get the file File imageFile = new File ( imagePath ) ; boolean deleted = false ; // Delete the image if ( imageFile . exists ( ) ) { deleted = imageFile . delete ( ) ; } return deleted ; }
Deletes image file for a given path .