We are using the following rsync command in a script to copy files from source to destination. 
rsync -av --exclude 'share/web/sessions/' --rsync-path "sudo rsync" /sdata/ 172.31.X.X:/sdata/ &>/home/fsync/rsyncjob/output
Now, we have a cleanup script on source host which is removing some of the files after some particular no of days based on our requirement. We want that the files once they are removed from source host , rsync  should also get them removed from destination host .
For that I can see, rsync provides --delete-before and --delete-after options to get the files removed from destination host once they were removed from source host. But I am little skeptical in using these  options as the man page says This  option can be dangerous if used incorrectly!  It is a very good idea to first try a run using the --dry-run option (-n) to see what files are going to be deleted. 
My updated command is as follows
rsync -av --exclude 'share/web/sessions/' --delete-after --rsync-path "sudo rsync" /sdata/ 172.31.X.X:/sdata/ &>/home/fsync/rsyncjob/outpu
Are these options correct ? These are production hosts for us and I want to be sure before using these options. Also any expert advice .