REFACTOR removed duplicate delete code
Changed log message to be more clear
Added directory check to deleteFile
Added null check to deleteFile
Changed operation order in deleteFile
Added tests for DuplicateOperations