} else if (plainMessage.startsWith(DELETE)) {
deleteFile(plainMessage.substring(FILE_ENDS.length()));
}
}
private void deleteFile(final String fileName) {
<BUG>Path path = Paths.get(attachmentPath + File.separator + fileName);
</BUG>
if (Files.exists(path)) {
try {
Files.delete(path);

} else if (plainMessage.startsWith(DELETE)) {
deleteFile(plainMessage.substring(FILE_ENDS.length()));
}
}
private void deleteFile(final String fileName) {
Path path = Paths.get(attachmentPath + FileUtils.separator + fileName);
if (Files.exists(path)) {
try {
Files.delete(path);
