public void deleteFiles(Collection<String> filenames) throws IOException {
        connect();
        for (String filename : filenames) {
            client.deleteFile(filename);
        }
        disconnect();
    }