final void deleteFile(FileMessage message) {
        String filename = message.message;
        FileRecord record = null;
        for(FileRecord fr : fileData) {
            if(filename.equals(fr.file)) {
                if(message.token.getGroups().contains(fr.group)) {
                    File f = new File(".filedata/"+filename);
                    f.delete();
                    record = fr;
                    message.message += " deleted.";
                    message.success = true;
                } else {
                    message.message = "no such file in your groups.";
                    message.success = false;
                    return;
                }
            }
        }
        fileData.remove(record);
    }