Does rsync delete local files if they were deleted on source folder?

Solution 1:

there's a --delete option. without this, it won't delete old files.