First time here? Check out the FAQ!
answered 2017-05-28 11:13:57 -0600
It doesn't matter what kind of files you're going to remove. Moreover it's not an OpenCV issue. If I understood you correctly, try to look at Java documentation. Fortunately, Java supports file system operations natively.