aws sync is not used for deleting the files, it only copies or modifies the files.
-- delete is used to delete files from the destination and not from the source or rather deletes the files that are not present in S3.
If your aim to copy files to S3 and then to the local directory.
use aws sync command without delete. It will copy all the files to S3 and sycn it to the local directory without deleting any files.
To know more about Migrating to AWS, join our AWS Cloud Migration Certification. Also, If you wish to master the principles in AWS and work on step-by-step tasks that have significant relevance for the world of business, industry professionals developed the AWS syllabus.
Keep Learning :)