Local:
folder
|_file1
Remote S3 Bucket:
folder
|_file1
|_file2
aws s3 sync . s3://remote-bucket
will do nothing, because sync will only add files, not remove them.
What I would like happen is that s3://remote-bucket/folder/file2
gets removed. Is there a command that syncs local folder and remote folder and not just adds files, but also removes them?