Rsync script to upload + delete files on server

Does somebody have a configurable rsync script to upload the files, directories while filtering out some directories and their sub-directories?

My task changes a lot of files, relocates them, and hence, I need to synchronize by selectively deleting files on the server.

Thanks.

Check out linux apps like unison or duplicity. They perform the same functions.